DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+2 =
Submit