Roland0 wrote: > > Code: -------------------- > > > outtime=$(stat -c"%Y" "$outfile") && intime=$(stat -c"%Y" "$infile") > if [ -n "$outtime" ] && [ "$intime" -ne "$outtime" ]; then > -------------------- > > > will reduce file accesses.
Thank you - I had to look up the purpose of '&&'. So this will only bother to get intime if getting outtime succeeded. And after that it doesn't access the file again because it uses those two existing variables. Much more efficient - implemented. ------------------------------------------------------------------------ chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=110496 _______________________________________________ ripping mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/ripping
