help with a bash script please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am not the best, and haven't looked at bash, but try moving the ! to the 
inside of the parens.
Thanks,
----- Original Message ----- 
From: "Gregory Nowak" <greg@xxxxxxxxxxxxxxxxxx>
To: <speakup at braille.uwo.ca>
Sent: Saturday, April 08, 2006 4:16 PM
Subject: help with a bash script please


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all.
>
> I'm having trouble with an if statement in a bash script I'm
> writing. What I want to do, is to check if a file doesn't have read
> permission. What I'm doing is:
>
> if !([ -r filename])
>
> However, bash says that the command [-r is not found on line
> number. Can someone please tell me what I'm doing wrong, and show me
> how to do what I want to do properly? Thanks in advance.
>
> Greg
>
>
> - -- 
> web site: http://www.romuald.net.eu.org
> gpg public key: http://www.romuald.net.eu.org/pubkey.asc
> skype: gregn1
> (authorization required, add me to your contacts list first)
>
> - --
> Free domains: http://www.eu.org/ or mail dns-manager at EU.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
>
> iD8DBQFEODZY7s9z/XlyUyARAgVJAKCyow1QR5lo7DjsNxUfAavCO86gFQCgmC+i
> S58rlWJzeICulyaj9sKfono=
> =QG4s
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup 






[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux