Wednesday, May 20, 2009

Sample script to FTP files

ftp -inv $FTPSERVER << END_SCRIPT
quote USER $FTPUSERNAME
quote PASS $FTPPASSWORD
put ABC*.dat
bye
##quit
END_SCRIPT

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