Skip to content

Instantly share code, notes, and snippets.

@mikecharles
Created September 7, 2016 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikecharles/ae5f246e8bdcb71391389dbb048ef418 to your computer and use it in GitHub Desktop.
Save mikecharles/ae5f246e8bdcb71391389dbb048ef418 to your computer and use it in GitHub Desktop.
Loop over files from find output
find . -type f -iname "*.txt" -print0 | while IFS= read -r -d $'\0' line; do
echo "$line"
ls -l "$line"
done
@mikecharles
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment