Insert css file into many html files


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.