how to remove X lines from output
Hello,
I would like to know how to remove X lines from output. lets say i have a test file and i want the output without the first 2 lines [root@node1 ~]# cat test 1 2 3 4 2 1 maybe it is very easy but i could not find the solution. Thanks in advance. |
Quote:
How about http://www.lmgtfy.com/?q=how+to+remo...es+from+output |
Try this:
Code:
cat test | awk 'NR > 2' |
lol, right i found solution with grep -v or nl and grep -v but it wont work with this file because i want to reduce the first 2 lines exactly not with some filters as the real file data is changing
maybe if there would be an option like grep -v with head -v |
Quote:
|
Quote:
Code:
awk 'NR>2' test |
All times are GMT -5. The time now is 01:28 PM. |