Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash add text to second line

sed -i "2a$text" file.txt
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #add #text #line
ADD COMMENT
Topic
Name
9+1 =