diff options
author | David Phillips <david@sighup.nz> | 2016-10-26 20:44:03 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2016-10-26 20:44:03 +1300 |
commit | 49b53c75b94aea509436536f94dc3e65354b9fcf (patch) | |
tree | b4b9fa0153e79d67c4aef01ca346a4d7a7b334c7 /local/bin/yardle-cache-analyse | |
parent | 4b84b1c26b4b0ca4a6b2fad3e133e628b10f8f6c (diff) | |
download | dotfiles-49b53c75b94aea509436536f94dc3e65354b9fcf.tar.xz |
Add local/bin files
Diffstat (limited to 'local/bin/yardle-cache-analyse')
-rwxr-xr-x | local/bin/yardle-cache-analyse | 11 |
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 |