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

3 comments:

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

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Strong explanation of Java fundamentals. Training like this is essential for beginners.

    java full stack developer course in hyderabad

    ReplyDelete