Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash write to file specific line

# It will write into 33 Line the word "anything" into specified file
sed -i '33ianything' path_to_file
 
PREVIOUS NEXT
Tagged: #bash #write #file #specific #line
ADD COMMENT
Topic
Name
1+9 =