askmatt

January 11, 2010

Quickly change a colour in a stylesheet from the command line

Filed under: e-commerce — Tags: , , — askmatt @ 12:21 am

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’

« Newer Posts

Powered by WordPress