Posted By

mahome on 06/03/11


Tagged

sed


Versions (?)

sed examples


 / Published in: Bash
 

  1. # delete empty lines
  2. sed "/^$/d" input
  3.  
  4. # search and replace
  5. sed "s/searchpattern/replacepattern/" input

Report this snippet  

You need to login to post a comment.