Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

add string at end of line sed

# Save suffixed file into a new file
sed -e 's/$/suffix/' file > file.new

# Edit file and overwrite with suffixed text
sed -i -e 's/$/suffix/' file
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #string #line #sed
ADD COMMENT
Topic
Name
8+9 =