Last active
January 8, 2018 21:13
-
-
Save pca2/0bc91053e77a580f26e88380c37debd9 to your computer and use it in GitHub Desktop.
return specific line number from file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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