DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+1 =
Submit