Created
September 16, 2016 17:35
-
-
Save abdul/4fea40dfdd8049dda6a8a7b253a6a0aa to your computer and use it in GitHub Desktop.
Run Bash command on all files in a directory
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 /Users/xyz/Desktop/my-dir/*; do echo "hello $file" >> results.out; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment