Recipes, scripts and genomics
Pages
Home
About
Relevant Links
Showing posts with label
sed
.
Show all posts
Showing posts with label
sed
.
Show all posts
Friday, November 19, 2010
Getting nth line in a file
Ever wondered what is the nth line of a file without using a text editor ?
Here is something you may use in a unix environment.
sed -n '5 p' file1.txt
this sed one-liner outputs the 5th line of the file1.txt
Home
Subscribe to:
Comments (Atom)