Search Results

Search: Posts Made By: helper
2,038
Posted By helper
Using SED
Here is the command to do the same....


sed -e :a -e '$d;N;2,20ba' -e 'P;D' <filename>

eg :
cat text
1
2
3
4
5
6
7
8
9
10
11
12
13
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 02:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy