Quote:
Originally Posted by trickydba
I need to figure out how to send files with appended dates
|
You can use globbing:
Code:
scp AUDITS_????????.xlsx user@remotehost.example.com:/some/path/destination/.
Each ? stands for a single character.
Or you can do tricks with
date
Code:
scp AUDITS_$(date -d yesterday +"%Y%m%d").xlxs user@remotehost.example.com:/some/path/destination/.
By the way, can your system generate OpenDocument Format spreadsheets (.ods) instead? They are more portable and will withstand the tests of time. So if you have to store the data for many years, you'll save over time.