Grep and Sed for Search and Replace

For all CSS files to move references adding a single parent directory

find -name \*.css -exec sed -i 's@url("../img@url("/static/img@g' {} \;

Leave a Reply

Your email address will not be published. Required fields are marked *