Link to home
Start Free TrialLog in
Avatar of kranthi_50404
kranthi_50404Flag for India

asked on

How to print the lines between two line numbers in unix

How to print the lines between two line numbers in unix ? I want this to be implemented in the script.
Avatar of sunnycoder
sunnycoder
Flag of India image

sed -n '2,6p'  inputfile

2 is the start line no and 6 is the end line no
ASKER CERTIFIED SOLUTION
Avatar of saurabhpendharker
saurabhpendharker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial