Computing.Net > Forums > Unix > KSH Script-Need Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

KSH Script-Need Help

Reply to Message Icon

Name: maverick
Date: September 9, 2003 at 06:09:54 Pacific
OS: AIX
CPU/Ram: 2
Comment:

Hi everyone,

I was asked to create a ksh script which does the following: (using ksh88 on AIX)

1. Check if file transfer is finished (via sftp)
2. Check if transferred file 'xxxxMM.txt' exists where xxxx can be any 4 characters and MM.txt is exactly how it appears.
3. If exists, check if 'xxxxDD.txt' exists (partner of previous file) where 'xxxx' is equal to previous 'xxxx'.
4. If exists, pass filenames as parameter to a pre-defined process.
5. Loop to step 2 if another 'yyyyMM.txt' exists. execute 3&4 until no more file to process.
6. Delete processed files
7. Exit.

Would appreciate your help. Thanks!

Regards,
Maverick



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: KSH Script-Need Help

Need Help With KSH Script www.computing.net/answers/unix/need-help-with-ksh-script/6747.html

Urgent help with KSH script www.computing.net/answers/unix/urgent-help-with-ksh-script/8014.html

Can someone help wid KSH script err www.computing.net/answers/unix/can-someone-help-wid-ksh-script-err/8021.html