summaryrefslogtreecommitdiff
path: root/local/bin/yardle-cache-analyse
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2016-10-26 20:44:03 +1300
committerDavid Phillips <david@sighup.nz>2016-10-26 20:44:03 +1300
commit49b53c75b94aea509436536f94dc3e65354b9fcf (patch)
treeb4b9fa0153e79d67c4aef01ca346a4d7a7b334c7 /local/bin/yardle-cache-analyse
parent4b84b1c26b4b0ca4a6b2fad3e133e628b10f8f6c (diff)
downloaddotfiles-49b53c75b94aea509436536f94dc3e65354b9fcf.tar.xz
Add local/bin files
Diffstat (limited to 'local/bin/yardle-cache-analyse')
-rwxr-xr-xlocal/bin/yardle-cache-analyse11
1 files changed, 11 insertions, 0 deletions
diff --git a/local/bin/yardle-cache-analyse b/local/bin/yardle-cache-analyse
new file mode 100755
index 0000000..9ec3eb4
--- /dev/null
+++ b/local/bin/yardle-cache-analyse
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -z $1 ]; then
+ echo Usage: $0 '<cache_dir>'
+ exit 1
+fi
+
+ls -1 $1 | while read -r file ; do
+ ts=$(head -n 1 $1/$file)
+ echo Created $(date --date=@$ts), $file
+done