Skip to content

Instantly share code, notes, and snippets.

@pca2
Last active January 8, 2018 21:13
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 pca2/0bc91053e77a580f26e88380c37debd9 to your computer and use it in GitHub Desktop.
Save pca2/0bc91053e77a580f26e88380c37debd9 to your computer and use it in GitHub Desktop.
return specific line number from file
# return line number $1 from file $2
get_line () { sed -n "$1,0p" $2 ; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment