- sed
$ sed -n '0~4p' somefile line 4 line 8 $
0~4 means select every 4th line, beginning at line 0.
Line 0 has nothing, so the first printed line is line 4.
-n means only explicitly printed lines are included in output.
Saturday, October 25, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment