Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 247 Bytes

if_file_exists.md

File metadata and controls

11 lines (7 loc) · 247 Bytes

Check if file exists

if [ -f /tmp/file ]; then echo 1; fi
  • /tmp/file - file that's being checked for existence
  • echo 1 - replace this with your code that should run of file exists

link_youtube: https://youtu.be/gSg49e-_xvg