Skip to content

Instantly share code, notes, and snippets.

@quickgrid
Created April 1, 2016 04:43
Show Gist options
  • Save quickgrid/808c7a37e11bb83bec6fade06705a1c2 to your computer and use it in GitHub Desktop.
Save quickgrid/808c7a37e11bb83bec6fade06705a1c2 to your computer and use it in GitHub Desktop.
Reads the file line by line that was passed in as the first argument.
#!/bin/bash
#Pass arguments of txt file via command line
while read line
do
echo $line
done < "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment