Hi, Iβm not used to doing something in Bash, so I am having some problems:
My goal is to look for special files in the folder, and if they are found, they generate some other files with the same file names, but different extensions.
Sort of:
For Files-that-are-called-"SysBackup*.Now" do NewFileName = ChangeFileExt(FoundFilename),BK GenerateNewfile(NewFileName) done
The above is of course dummycode, I will not bother you with the code I made, since it does not work :-)
Therefore, the goal should be:
If the folder contains Sysbackup123.now and Sysbackup666.now, I get the files Sysbackup123.bk and Sysbackup666.bk
Thanks for any help
Michael
source share