Skip to content

Instantly share code, notes, and snippets.

@danielecook
Created March 29, 2019 10:48
Show Gist options
  • Save danielecook/61bef5d628b14d7df553e73576c7ff53 to your computer and use it in GitHub Desktop.
Save danielecook/61bef5d628b14d7df553e73576c7ff53 to your computer and use it in GitHub Desktop.
Test whether file or directory do not exist
while read f; do
if [[ ! -f "${f}" && ! -d "${f}" ]]; then
echo "$f not found"
fi
done <file_paths.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment