Can anyone help me at solving the following riddle, I am trying to do a simple script to:
Create a password file on server A
How can I extract certain file names from a sub directory of server A?
For example the files may be of type *.txt or *.123
Send the found files a new list and sort them by name
Change the name of the new files
Send the files to a remote server (B)
SSH to the remote server (B) to check that the files are there
If the files are there, delete them from the original host (A)
Thanks in advance for your suggestion
Create a password file on server A
How can I extract certain file names from a sub directory of server A?
For example the files may be of type *.txt or *.123
Send the found files a new list and sort them by name
Change the name of the new files
Send the files to a remote server (B)
SSH to the remote server (B) to check that the files are there
If the files are there, delete them from the original host (A)
Thanks in advance for your suggestion