Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

bash sed crop cut file line number

sed -n '8,12p' yourfile  # Will send lines 8 through 12 of yourfile to standard out.

# For example:
cat file-to-cut.txt | sed -n '26,142p' >> new-file.txt
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #sed #crop #cut #file #line #number
ADD COMMENT
Topic
Name
6+9 =