[ubuntu-za] Script error

1.sean.riley 1.sean.riley at gmail.com
Tue Apr 14 13:26:25 BST 2009


I think it must look as follows;

#/bin/dash
if [ -f /mnt/backup/mailbackups/*.dotproject.files.tar.gz ]; then
     rm /mnt/backup/mailbackups/*.dotproject.files.tar.gz
fi

cheers
AcidHawk



Alf Stockton wrote:
> I have the following commands in DingDong.sh test file
>
> #/bin/dash
> if [ -f /mnt/backup/mailbackups/*.dotproject.files.tar.gz ]
>      then
>      rm /mnt/backup/mailbackups/*.dotproject.files.tar.gz
> fi
>
> and I keep getting the error:-
>
> ./DingDong.sh: line 2: [: too many arguments
>
> Please tell me how I got this wrong.
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-za/attachments/20090414/0f600144/attachment.htm 


More information about the ubuntu-za mailing list