Skip to content

Instantly share code, notes, and snippets.

@packetchef
Created July 21, 2020 23:53
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 packetchef/9521279f140f376562fee395be3120f2 to your computer and use it in GitHub Desktop.
Save packetchef/9521279f140f376562fee395be3120f2 to your computer and use it in GitHub Desktop.
# Where $1 is a file, this reads and prints each line
# The idea is, replace the echo with something else that processes each line
while read line
do
echo "Line is: $line"
done < $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment