Search Results

Search: Posts Made By: Dip
2,782
Posted By Don Cragun
Expanding a bit on what Andrew already said... ...
Expanding a bit on what Andrew already said...

Did you try the code I suggested in post #2 in this thread?

If so, in what way did it fail?

Are you saying that you have some files that will...
2,782
Posted By apmcd47
DonCragun's code as posted would have worked. You...
DonCragun's code as posted would have worked. You modified a crucial part of that code, vis
for file in server.log-$filename_time2*
This expands the wildcard; the if statement then checks the first...
2,782
Posted By Don Cragun
Maybe something more like: ...
Maybe something more like:
filename_time2=$(date --date='yesterday' +%Y-%m-%d)
cd /location/of/the/files/to/copy

for file in server.log-$filename_time2*
do if [ -f "$file" ]
then
cp...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy