ftp -inv $FTPSERVER << END_SCRIPT
quote USER $FTPUSERNAME
quote PASS $FTPPASSWORD
put ABC*.dat
bye
##quit
END_SCRIPT
Wednesday, May 20, 2009
Friday, May 8, 2009
Simple Shell Script to iterate through list of files
Simple Shell Script to iterate through list of files and do the stuff.
FILES="TEST*.dat"
for f in $FILES
do
echo "Processing file file $f file..."
process_file $f
done
FILES="TEST*.dat"
for f in $FILES
do
echo "Processing file file $f file..."
process_file $f
done
Subscribe to:
Posts (Atom)