Answers for "sed prepend all lines if start with"

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language