How does awk handle open files? Suppose I am running a cron job to
find files that are downloaded to a directory via sftp. Every 10
minutes, I want to process the files using an awk script and move them
to another directory. What would happen if the awk script was fired
and the file was not finished downloading?
Would awk handle it gracefully or would I have to account for it in a
unix script?
Thanks
Any assistance would be greatly appreciated
*/10 * * * * /bin/process_sun.sh > /dev/null 2>&1
for FILE in `find /home/Upload/* -prune -type f -newer TIMEFILE`
do
gawk -f convert_sunterra.awk $FILE
done