Created
July 4, 2018 06:43
-
-
Save yehgdotnet/b19b9e2205fe44998dfa5ccc8d51897a to your computer and use it in GitHub Desktop.
Bash read line by line
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
# 1st param is command; #2nd param is file | |
while read -r line; do $1 $line ; done < $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment