Tuesday, August 8, 2017

sed : snippet

Keep the first match and remove the rest match from file

sed 'PATTERN\s*$/d' -i path_to_file

1 comment:

  1. Thanks for sharing such a useful information for us. we also offer Germany VPS Hosting so if you want visit this link.

    ReplyDelete