Search Results

Search: Posts Made By: MadeInGermany
2,147
Posted By MadeInGermany
It is possible, but they are paying you - not...
It is possible, but they are paying you - not me...
In the script you can change the variable LOG to only the base filename, and prefix the directories in the mv and test command, and maybe even...
2,147
Posted By MadeInGermany
You can do LOG=/var/ovd/ConfigLogs m=5 for...
You can do
LOG=/var/ovd/ConfigLogs
m=5
for n in 4 3 2 1
do
[ -f $LOG.$n.bz2 ] && mv $LOG.$n.bz2 $LOG.$m.bz2
m=$n
done
cp -p $LOG $LOG.1
> $LOG
bzip2 $LOG.1
---------- Post updated at...
Showing results 1 to 2 of 2

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