Search
 
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
Name
5+2 =