Keep It Simple Stupid
Where Dreams Begin
Monday, January 5, 2015
Ignore the first line in a text file
Problem:
ignore the first line in a text file under Linux
Solution:
1)
cat file |awk 'NR>1{print$0}'
2)
cat file |sed 1d
Example:
$
cat file
1000 1000
8 8
2 -2
3 0
7 5
$
cat file |sed 1d
8 8
2 -2
3 0
7 5
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment