[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

#/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.

-- 
Regards,
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