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
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.