Created
January 8, 2014 22:45
-
-
Save coderofsalvation/8325973 to your computer and use it in GitHub Desktop.
gets the nth line ( e.g. cat file.txt | getline 4 )
This file contains hidden or 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
| # gets the nth line ( e.g. cat file.txt | getline 4 ) | |
| # @param int linenumber | |
| getline(){ | |
| cat - | sed -n "$1p" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment