[ubuntu-za] Script error

Alf Stockton alf at stockton.co.za
Tue Apr 14 13:20:08 BST 2009

I have the following commands in DingDong.sh test file

if [ -f /mnt/backup/mailbackups/*.dotproject.files.tar.gz ]
     rm /mnt/backup/mailbackups/*.dotproject.files.tar.gz

and I keep getting the error:-

./DingDong.sh: line 2: [: too many arguments

Please tell me how I got this wrong.

Alf Stockton		www.stockton.co.za

How apt the poor are to be proud.
		-- William Shakespeare, "Twelfth-Night"

More information about the ubuntu-za mailing list