Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to add characters before a line

cat new.txt | awk '{print "whatever you want" $0 }' > new_tmp.txt

$0 print all the line again
 
PREVIOUS NEXT
Tagged: #add #characters #line
ADD COMMENT
Topic
Name
5+2 =