Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash add text to beginning of file

sed -i '1ithis will be the first line' file.txt
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #bash #add #text #beginning #file
ADD COMMENT
Topic
Name
8+2 =