Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Created July 3, 2020 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peteristhegreat/c6f5105ab2ff241b19bf5b0ed4544b23 to your computer and use it in GitHub Desktop.
Save peteristhegreat/c6f5105ab2ff241b19bf5b0ed4544b23 to your computer and use it in GitHub Desktop.
Bash command once per line of a file bash run command once for each line in file
IFS=$'\n'
for i in $(cat < "list_of_input.txt"); do
echo "Item in \"$i\""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment