File exists

From KlavoWiki
Jump to navigationJump to search

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

if [ -f filename ];
  then
  fi