I'm a bit of a unix n00b so be gentle! I need to use ftp to download some files. I have the ftp running in a shell script which had been working perfectly last week. I downloaded around 400 files before it broke on friday.
Now whenever I try to run the script, it starts to download files and then stops arbitrarily in the middle of the first mget.
I want to download files from Samba server that were added or updated on current date using smbclient.
How can I do it? The only variant I see, is executing ls with smbclient, parsing the output and downloading each file with separate smbclient command. but it is to slow. I also cannot make a sequence of mget commands because of command length limitation.
I'm currently trying to rename a series of files I have downloaded using mget. The files are coming from a mainframe so they have dataset qualification names. When I perform the mget the files come down with single quotes surrounding them. I'm running the following script to take those quotes off and was trying to use the same process to remove part of the names.
I need to create a tar file with a list of files from a directory.
The directory has about 1000+ files of which I only need to create a tar ball of 150 files. The 150 files I need in the tar ball do not have common names or a common start letter.
No two file names match, example: 1st file name can be metrics.txt, 2nd file name can be avaerage,txt .