Dec 31 2008

copy file creation date to copied file if forgotten

ls -l “../../../gallery/gallery”| grep -v insgesamt|while read line; do dat=`echo $line|awk ‘{print $6}’`; time=`echo $line|awk ‘{print $7}’`;fn=`echo $line|awk ‘{print $8” “$9” “$10” “$11” “$12}’|sed -s “s/ *$//g”|sed -s “s/\ /\\\ /g”`;echo “$fn/”  $dat $time;touch “$fn” -d “$dat $time”;done