I would appreciate your comments on the script below. I have a need to time stamp the files that I am bringing in from another server and maintain the integrity of their unique naming convetion . So, after the ftp session is completed I go to the directory where the files are at and use the for loop and cat command to append a time stamp to all the files within the directory and them remove the original file. Is there a shorter or better way of doing this? I do not want to do it during the ftp session...is this ok or do you guys prefer to do it during the ftp session? It would be great to just be able to append the time stamp without concatenating. Looking forward to your replies.
*************************************
easy_cat=/files/in/directory/[A-Z0-9] *
in = /files/in/directory
if [ -f $easy_cat ]; then
cd $in
for i in $easy_cat
do
cat $i > $i.$DTTM
rm $i
done
else
exit
f