Answers for "sed add character at beginning of line"

0

sed add word to beginning of line

$ sed 's/^/#/' file.txt
#add
#character
#at the
#beginning of
#each line
Posted by: Guest on March-22-2020
0

sed insert string at beginning of line matching pattern

sed '/PATTERN/ s/./INSERT&/' [FILE]
Posted by: Guest on June-13-2021

Code answers related to "sed add character at beginning of line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language