Skip to content

Instantly share code, notes, and snippets.

@yehgdotnet
Created July 4, 2018 06:43
Show Gist options
  • Save yehgdotnet/b19b9e2205fe44998dfa5ccc8d51897a to your computer and use it in GitHub Desktop.
Save yehgdotnet/b19b9e2205fe44998dfa5ccc8d51897a to your computer and use it in GitHub Desktop.
Bash read line by line
# 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