Created
September 7, 2016 13:36
-
-
Save mikecharles/ae5f246e8bdcb71391389dbb048ef418 to your computer and use it in GitHub Desktop.
Loop over files from find output
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
find . -type f -iname "*.txt" -print0 | while IFS= read -r -d $'\0' line; do | |
echo "$line" | |
ls -l "$line" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit goes to http://stackoverflow.com/a/15066129/1088639