Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete strings after match to eol using sed command

$ cat file | awk -F '.com' '{print $1".com"}'
google.com
unix.stackexchange.com
isuckatunix.com
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #delete #strings #match #eol #sed #command
ADD COMMENT
Topic
Name
6+9 =