summaryrefslogtreecommitdiff
path: root/local/bin/yardle-cache-analyse
blob: 9ec3eb4d7ee449320371f521254c2aca43158835 (plain)
1
2
3
4
5
6
7
8
9
10
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