Posted By

ascarion on 12/02/08


Tagged

css html sed


Versions (?)

Insert css file into many html files


 / Published in: Bash
 

  1. find . -iname '*.html' | xargs sed -e '/<\/head>/i\
  2. <link rel="stylesheet" type="text/css" href="style.css" />\
  3. ' -i .bak

Report this snippet  

You need to login to post a comment.