Yanndewael
Programmer
Hello,
I am a beginner in UNIX programmation and I want to do the following:
- I connect from the UNIX server to an FTP server
- I take all the .dat files from a particular directory
- and here is my problem: I want to rename the files I took into .dat.done for example. But it seems that I cannot rename all the files at once (if I understood well, the rename command need the exact filename to rename). Since I don't know the name of the files (these are ref number), I cdon't know how to do. Is it possible to perform a loop in an FTP session??
Thank you for your help
Y
I am a beginner in UNIX programmation and I want to do the following:
- I connect from the UNIX server to an FTP server
- I take all the .dat files from a particular directory
- and here is my problem: I want to rename the files I took into .dat.done for example. But it seems that I cannot rename all the files at once (if I understood well, the rename command need the exact filename to rename). Since I don't know the name of the files (these are ref number), I cdon't know how to do. Is it possible to perform a loop in an FTP session??
Thank you for your help
Y