Shortcuts in Science
Wednesday, 18 June 2014
Linux: extract a range of rows from a text files
To extract row 1 and 2, use the following command:
sed
-
n
1
~
2p
filename
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment