Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed add word to beginning of line

$ sed 's/^/#/' file.txt
#add
#character
#at the
#beginning of
#each line
Source by linuxconfig.org #
 
PREVIOUS NEXT
Tagged: #sed #add #word #beginning #line
ADD COMMENT
Topic
Name
5+6 =