Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

using sed to remove part of a line using EOL

$ sed 's|http://||' <<EOL
http://url1.com
http://url2.com
http://url3.com
EOL
Source by catonmat.net #
 
PREVIOUS NEXT
Tagged: #sed #remove #part #line #EOL
ADD COMMENT
Topic
Name
2+3 =