Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed insert string at beginning of line matching pattern

sed '/PATTERN/ s/./INSERT&/' [FILE]
 
PREVIOUS NEXT
Tagged: #sed #insert #string #beginning #line #matching #pattern
ADD COMMENT
Topic
Name
4+1 =