Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

copy first 10 lines of a file to another file in unix

sed -n '1,10p' filename > newfile
 
PREVIOUS NEXT
Tagged: #copy #lines #file #file #unix
ADD COMMENT
Topic
Name
4+3 =