The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #24 (permalink)  
Old 07-20-2006
reborg's Avatar
reborg reborg is offline
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
Actually that exactly the reason that it is againts the rules of these forums.

However try this:

Code:
#!/bin/ksh
dir=/biddf/ab6498/dev/ctl
export dir
set -x 
myfilepattern=$@
integer filecount=0
for file in $myfilepattern_???_$(date +%Y%m%d) ; do
filecount=$filecount+1
done

if (( $filecount == 10 )); then
print "success"
exit 0
else
print "failure"
exit 1
fi
Reply With Quote