I have i file that contains 100000 line
how i can get the lines from line# 5555 to line# 7777 under linux.
Thanks for all.
fileslinuxsed
I have i file that contains 100000 line
how i can get the lines from line# 5555 to line# 7777 under linux.
Thanks for all.
Best Answer
This will print lines 5555-7777 of the file inclusively.
Dennis Posted the following which I agree should be faster:
sed '5555,7777p; 7778q' filename
The following evidence that it should be faster:
In Bash only (for fun):