#!/bin/bash # check the current snapshots directory for other versions of a specific # filename (using full local path), and do an ls -ald on them to see when # timestamps, size, etc change. # This expects the directory structure that NetApp filer's use for their # snapshots, otherwise it won't work so well. # Purposefully did not use 'find', because it takes too long. # This script lives at http://www.elifulkerson.com if [ $# = 0 ] then echo "You must specifiy a target file, using its full path from the netapp mount" else target=$*; cd .snapshot for dirs in `ls`; do ls -ald $dirs/$target done; cd .. fi