Skip to content

Instantly share code, notes, and snippets.

@honux77
Created April 8, 2015 01:29
Show Gist options
  • Select an option

  • Save honux77/e5d4fa61ab9b88c4b87d to your computer and use it in GitHub Desktop.

Select an option

Save honux77/e5d4fa61ab9b88c4b87d to your computer and use it in GitHub Desktop.
Tenth Line
# Read from the file file.txt and output the tenth line to stdout.
for i in $(seq 1 10)
do
read line
done < "file.txt"
echo $line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment