www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/02/19/14:05:03

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Date: Tue, 19 Feb 2008 12:35:31 +0100
From: Michelle Konzack <dos4michelle AT freenet DOT de>
Subject: Re: Need to find "mv"
Message-ID: <20080219113531.GJ2017@freenet.de>
References: <OeCdnRHck8tf4SXanZ2dnUVZ_veinZ2d AT giganews DOT com> <200802171940 DOT m1HJeoGS029849 AT envy DOT delorie DOT com> <d5qdnWKXurivaCXanZ2dnUVZ_ruqnZ2d AT giganews DOT com>
Mime-Version: 1.0
In-Reply-To: <d5qdnWKXurivaCXanZ2dnUVZ_ruqnZ2d@giganews.com>
X-Message-Flag: Improper configuration of Outlook is a breeding ground for viruses. Please take care your Client is configured correctly. Greetings Michelle.
X-Disclaimer-DE: Eine weitere Verwendung oder die Veroeffentlichung dieser Mail oder dieser Mailadresse ist nur mit der Einwilligung des Autors gestattet.
Organisation: Michelle's Selbstgebrautes
X-Operating-System: Linux tp570.private 2.4.27-2-686
X-Uptime: 12:14:01 up 15:08, 6 users, load average: 0.04, 0.18, 0.18
X-Homepage: http://www.debian.tamay-dogan.homelinux.net/
User-Agent: Mutt/1.5.9i
To: djgpp AT delorie DOT com
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--W13SgbpmD6bhZUTM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Am 2008-02-18 19:00:42, schrieb miner_tom:
> However, I am having trouble with conditional statememts, like
>=20
> if [-f file.c]; then
>     echo "file.c"'
> fi
>=20
> I get an error something like
> "shellscript: [-f command not found.

ATTENTION:   You have a SINGEL-QUOTE after "file.c".

And since "[" is a command, you should take care about SPACES and use

    if [ -f file.c ] ; then
        echo "file.c"
    fi

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


--=20
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

--W13SgbpmD6bhZUTM
Content-Type: application/pgp-signature; name="signature.pgp"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFHur8DXnHp6ejAnVoRAnCpAJ9m0TeuCLjErANuiB0qw1xpXv6R6gCfe7Ut
JWdyAw5PIMUXZGFIo/qbr4g=
=vogn
-----END PGP SIGNATURE-----

--W13SgbpmD6bhZUTM--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019