[97376] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: '/usr/bin/['

daemon@ATHENA.MIT.EDU (Jan Carlson)
Mon Nov 2 22:24:08 1998

Date: Mon, 02 Nov 1998 22:23:20 -0500
From: Jan Carlson <janc@iname.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Piet Barber wrote:

> All right...
>
> Could someone please 'splain to me what the program  '/usr/bin/[' is?
>
> ÿóË?­æ?¶?yÑÚ´Pý8©³ñ+­«Zjwm?ã

It runs the 'test' program:

# ls -l /usr/bin/[
lrwxrwxrwx   1 root     root            4 Jul  2 22:02 /usr/bin/[ ->
test

See     man test

You can type this, for example:

if [ -f /tmp/junk ]
then
   echo There is a junk file in /tmp
fi

Or you can type
if test -f /tmp/junk
then
      echo There is a junk file in /tmp
fi



--

Jan Carlson
janc@iname.com   Scarborough, Ontario, Canada
Mailed with Netscape 4.5 on Red Hat Linux 5.1




-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post