The for statement is
for PROC_DATE in `find /prod/home01/store/csa/data/data01/input/amerifee/ -name '[0-9][0-9][0-9][0-9][0-1][0-9][0-3][0-9]'|so
rt -u`
All the files that I want are in the same directory, but the problem is I donot want to cat all the files in that directory.....Please let me know how to go about that...
I would like to have a script that concatenates multiple files in a folder into a single file.Any help is appreciated. Thanks.
Something like this.....
for PROC_DATE in `find path -name '*'|sort -u`
do
concatenate logic
....
....
done
MONTHDATE(){ # MONTHDATE nDays [format]
typeset -i nDays=$1; format=$2
typeset -i localOffset=$(echo $TZ |
sed 's![^-0-9]*\([-0-9]*\).*!\1!')
TZ=X$((localOffset-24*nDays)) date $format
}
MONTHS_DATE="$(MONTHDATE -45 '+m%d')"
Error:----
It is returning this value where as I am expecting...
I want the below statement to return the value 2 if the ls command returns any files?
rc=$(rsh -l dmnida kdnidp02 "ls ${ZW_MONTHLY_PATH}${SD_FILE}.sum 2>/dev/null
Thanks a lot.
I want this statement to return a value 2 if any files are returned in ls command? I would really appreciate if you could help me with this question.
How to compare 2 dates of yyyymmdd format in a if statement?
I am trying to compare two dates in a If condition like this and it does not work?
if (( "$PROC_DATE" < "$MONTHS_DATE" ))
then
print "$MONTHS_DATE"
fi
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.