2006 July 22nd, Saturday ; 17:51:05 (parancs)

for i in `ls|grep .html`;do cat $i|sed -e 's/.thumbs/thumbs/g' > $i;done
tökre megörültem hogy összeütöttem ezt a kodot magamtol :D csak az a bibi, hogy igy elofordulhat, hogy menet kozbe amit meg catel a rendszer, a sed mar atirta, es eltunik a fajl tartalma, ugyhogy egy temp filet be kell iktatni a tortenetbe :) \o/

Post a Comment