I have a program that takes data from five government sources and merges them into one large database for my company. I use wget to retrieve the files. However I have discovered that one of the sources changes the name every time it is updated.
For example, the last time I got the file it was called
myfile150727.flatfile. Today when I tried to run my program I got exit status 8
no such file. When I manually got into the ftp I found that the file is now called
myfile150914.flatfile. So obviously the filename is changing based upon the date it was last updated.
Can I modify my script to take this fact into account and still automatically download the file?