Created
June 10, 2018 04:49
-
-
Save cfljam/bf813edd04271fac43f0010d72cacd0c to your computer and use it in GitHub Desktop.
Check for file existence in BASH using a listfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for FILE in $(cat my_FOF); do if [ -e $FILE ]; then echo $FILE "exists"; fi; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment