Answers for "linux script file tutorial add line at first in the end and a specific line"

-1

add line to beginning of file shell script

$ sed -i '1s/^/added text /' file
Posted by: Guest on February-16-2021

Code answers related to "linux script file tutorial add line at first in the end and a specific line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language