Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

insert a line at a line number sed

sed -i '8i8 This is Line 8' FILE

8 This is Line 8
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #line #line #number #sed
ADD COMMENT
Topic
Name
6+4 =