fork(4) download
  1. #!/bin/bash
  2. # http://stackoverflow.com/questions/29530441/how-do-you-remove-all-the-lines-between-two-html-tags-using-sed-or-similar
  3.  
  4. sed '/<HEAD>/,/<\/HEAD>/d' <<':'
  5. <HTML>
  6. <HEAD>
  7. < ... stuff ... ></HEAD>
  8. < ... stuff ... > <!-- keep this -->
  9. </HTML>
  10. :
Success #stdin #stdout 0s 5032KB
stdin
Standard input is empty
stdout
<HTML>
< ... stuff ... > <!-- keep this -->
</HTML>