#!/bin/ksh # # Very basic script taking a file list as input and searching all the # DPM filesystems on the current node for the file. # # Written by Michel Jouvin - 16/1/2007 usage () { echo "Usage :\t$(basename $0) file_list" exit 1 } if [ -z "$1" ] then usage else file_list=$1 fi files=$(awk '{print $1}' $file_list) for filepath in $files do file=$(basename $filepath) echo "Checking $file... \c" newpath=$(find /dpmpart/part* -name $file) if [ -z "$newpath" ] then echo "Not found" else echo "Found in $newpath" fi done