Answers for "add on certain line in text file linux'"

0

add line at beginning of file unix

sed -i '1s/^/your textn/' file #Note the addition of the "n" for concluding the new line after the insertion
Posted by: Guest on September-20-2021

Code answers related to "add on certain line in text file linux'"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language