Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete strings after match to eol using sed command

# You can use awk's field separator (-F) following way:
$ cat file
google.com/funny
unix.stackexchange.com/questions
isuckatunix.com/ireallydo
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #delete #strings #match #eol #sed #command
ADD COMMENT
Topic
Name
2+1 =