I want to move all logfiles from the previous day via ftp to another server and am trying to set the variable for the logname. The logfiles could look like
acdlog20030512-1407.acdlog (don't know what -1407 actually is and don't care. Just want all files that look like acdlog20030512*.acdlog
Tried
#!/bin/csh
set log_name=acdlog`date --date='yesterday' +%Y%m%d`.acdlog
echo $log_name
Script gives me acdlog20030612.acdlog
I need acdlog20030612*.acdlog
Is there a way I can do this?
Thanks
acdlog20030512-1407.acdlog (don't know what -1407 actually is and don't care. Just want all files that look like acdlog20030512*.acdlog
Tried
#!/bin/csh
set log_name=acdlog`date --date='yesterday' +%Y%m%d`.acdlog
echo $log_name
Script gives me acdlog20030612.acdlog
I need acdlog20030612*.acdlog
Is there a way I can do this?
Thanks