Can anyone please explain what this code is doing for first 6 lines? I believe this is array but I couldn't understand what exactly it is doing.
Code:
set -A Dis_array 95
typeset -L2 distribution
let count=0
while (( $count < ${#Dis_array[*]} )) ; do
distribution=${Dis_array[count]}
echo "distribution = ${distribution}"
cat ${Filename} >> ${SOME_PATH}/data/${distribution}abcfile.${log_time}
rc=$?
if [ ${rc} != "0" ]
then
echo "Return Code is ${rc}"
exit ${rc}
fi
echo "${distribution}abcfile sent to DC ${distribution} system"
let count="count + 1"
done
find /some/other/path/data -follow -name "*abcfile*" -mtime +2 -print -exec rm {} \;