日期:2014-05-17 浏览次数:20553 次
html{ filter: gray;}
#!/bin/bash site_path=$1 site_url=$2 for i in `find $site_path -name "*.css" |grep -v "/admin/"` do sed -e '1iaaa' $i |sed -e '1r a.txt' |sed -e '1d' >c.txt;mv -f c.txt $i eval url=`echo $i|sed "s#${site_path}##"` echo $site_url$url done
html{ filter: gray;}
#!/bin/bash site_path=$1 site_url=$2 for i in `find $site_path -name "*.css" |grep -v "/admin/"` do test_str=`sed -n 1p $i` if [ "$test_str" = 'html{ filter: gray;}' ]; then sed -e '1,2d' $i >c.txt;mv -f c.txt $i eval url=`echo $i|sed "s#${site_path}##"` echo $site_url$url fi done