staffordwarren
Technical User
I want to create a script that gets a file from a Unix server and moves it to my Sun box each night.<br>I currently have a script that looks like this:<br><br>ftp -n -v << EndFTP<br>open <system name><br>user <user/pwd><br>ascii<br>cd sales_reports<br>get Report-20000706-052148.csv<br>close<br>EndFTP<br><br>Notice that in the file name, there is a date-timestamp string. What I need to do is to pick up files (and there may be multiples) that match an inputted date string. What I'd like to do is use a wildcard character in the file-spec, but that doesn't seem to work. As a second approach, can I list the files (with ls) that exist, capture the response in an array and then get the names from the array?<br><br>Any help is much appreciated!<br>Stafford Warren