Ygor -
One problem that I need to get around. Basically, I need to ftp a list of candidate files. However, before I pull them, I need to assign each a unique sequence number as described in my above post. I have defined the get_count function earlier in the script.
If I do this:
while f=$(line)
do
ftp ${args} ${ip} <<-EOF
user ${id} ${pwd}
rename $f.DAT $f${get_count}.DONE
get $f$(get_count).DONE
quit
EOF
done < ${file}_good.tmp
Then it will again assign a new ssequence number during the "get" command. How can I define the sequence number so I "get" the same file name that I created during the reanme step.
Thanks again for any help.