DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
add line to beginning of file shell script
$ sed -i '1s/^/added text /' file
PREVIOUS
NEXT
Tagged:
#add
#line
#beginning
#file
#shell
#script
ADD COMMENT
Topic
COMMENT
Name
5+2 =
Submit