Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

bash scripting



On Fri, 29 Sep 2000, Tom Guilderson wrote:

> I came accros the following construct in a bash script:
> 
> if [ ! -f /path_to_file_1 -a -f /path_to_file_2 ] ; then
> 	execute some stuff
> fi
> 
> My question is what is the -a option?
> 
> 

Weird indeed, I found myself asking the same question today after looking
at the script that starts squid up. ;)

It's a "logical and".

--
Niall Kavanagh, niall at kst.com
News, articles, and resources for web professionals and developers:
http://www.kst.com
WARNING: I have switched from cigarettes to nicorette. I am cranky.

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org