]> code.delx.au - mediapc-tools/commitdiff
monitor_dir display detail and sort by time
authorJames Bunton <jamesbunton@delx.net.au>
Thu, 11 Oct 2012 10:50:16 +0000 (21:50 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 11 Oct 2012 10:50:16 +0000 (21:50 +1100)
monitor-dir

index 6f1c940882b1878bd38b35a227fd04bb1b07de16..ba220b1e8c9efdd0c286b8fa556bfe0af9cff373 100755 (executable)
@@ -10,7 +10,7 @@ fi
 mon="$1/${2:-.monitor_dir}"
 mon_tmp="${mon}_tmp"
 
-ls -R "$1" > "$mon_tmp"
+ls -tlR "$1" > "$mon_tmp"
 if [ -r "$mon" ] && ! cmp -s "$mon" "$mon_tmp" && [ -n "$(ls "$1")" ]; then
        cat "$mon_tmp"
 fi