Hi,
I'm writing some start of day checks for my work. I want to check some dirs for files that have been created longer than 10 mins ago and not been transfered. I've already used a find command to write a list of files that meet this criteria to a log called sod.log
i.e.
/filetransfer/dir1/outgoing/B84743
/filetransfer/dir2/outgoing/B84743
/filetransfer/dir3/outgoing/B84743
I'm now updating the script that writes the output to the screen if such files exist.
I thought something like this would work but It does not seem to
for outgo in dir1 dir2 dir3 dir4
do
awk '/outgoing/ && /'"$outgo"'/ {print $0} sod.log || grep -q "$outgo" || print file in outgoing dir $outgo please check.
Any help would be appreciated.
Thanks
Phil.