Skip to content

Instantly share code, notes, and snippets.

@aarondai
Last active August 29, 2015 14:04
Show Gist options
  • Save aarondai/aeec1f443d71ca57754c to your computer and use it in GitHub Desktop.
Save aarondai/aeec1f443d71ca57754c to your computer and use it in GitHub Desktop.
BASH: Read File Line By Line
#!/bin/bash
FILE=$1
while read line; do
echo "This is a line : $line"
done < $FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment