copy file creation date to copied file if forgotten

bash No Comments »

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

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in