Created
October 26, 2020 14:50
-
-
Save roalcantara/e3cef78d159714bffdd84dc24d4d0391 to your computer and use it in GitHub Desktop.
Run a command for each line
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
ls -1 | while read line ; do echo $line ; done | |
# https://stackoverflow.com/a/2711008/1603694 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment