Hi,
I have to write a KSH script to loop through the directory and transfer all the files through FTP. The source machine is the Network shared drive and the files in the directory needs to be FTPied to the UNIX server.
MYDIR=/home/sri/kanth
cd $MYDIR
TEMP1=`ls -1 >$MYDIR/temp1`
for i in `cat $TEMP`
do
echo $i # file name which resides in $MYDIR directory
echo " you can do something with files"
bla bla bla
-----------
-----------
----------
done
I think this the code you are looking for
if not ...pls post your code, we try to give the solution..