DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+9 =
Submit