Created
April 15, 2021 06:24
-
-
Save theagoliveira/2a4cfc65d0ce5faa4fe6a49b1120a0f6 to your computer and use it in GitHub Desktop.
Recursively iterate through files in a directory
This file contains 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
# SOURCE: https://unix.stackexchange.com/a/139381/454027 | |
while IFS= read -r -d '' -u 9 | |
do | |
echo "Filename is '$REPLY'" | |
done 9< <( find "PATH" -regex ".*\.EXTENSION" -exec printf '%s\0' {} + ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment