On 16 January 2011 17:34, Bob Proulx wrote:
> Adrian Levi wrote:
>> if [ $backuplevel -eq 0]
>
> You are missing a space after the 0 and before the ] and I am hoping
> that is simply an email glitch. But you must have a space there.
>
> if [ $backuplevel -eq 0 ]
Thanks Bob, That fixed it
Adrian Levi wrote:
> Is the output from the date command a string or integer wrt date +%w?
The date command only produces string output. %w produces one of the
characters 0, 1, 2, 3, 4, 5, 6.
> I'm trying to test a condition in my backup script where i want to
> match on day of week = 0
>
> The
Is the output from the date command a string or integer wrt date +%w?
I'm trying to test a condition in my backup script where i want to
match on day of week = 0
The program flow I am trying to achieve is" If the file exists and the
day of the week is 0 then remove the file and set the day of the
3 matches
Mail list logo