File exists: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
(Created page with 'In BASH programming; If you want to check if a file exists: <pre> if [ -f filename ]; then fi </pre> Category : BASH')
 
(No difference)

Latest revision as of 00:31, 23 March 2009

In BASH programming; If you want to check if a file exists:

if [ -f filename ];
  then
  fi