Quickly change a colour in a stylesheet from the command line

Quickly change a colour in a stylesheet from the command line

Change all instances of ‘#ebbc58′ to ‘#ffff33′ in all files ending .css in the directory ‘/var/www/skin/frontend/default/default/’ and all its sub-directories.

find /var/www/skin/frontend/default/default/ -name “*.css” -print | xargs sed -i ‘s/ebbc58/ffff33/g’


Tags: , ,
Posted under: e-commerce Comment (RSS)  |  Trackback

Share this post

Leave a Reply