Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# 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
echo "Line is: $line"
done < $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment