[LUGOS] BASH programming!!!
Stojan Rancic
stojan at aufbix.org
Tue May 27 14:06:23 CEST 2003
Hojla Novak,
Tuesday, May 27, 2003, 1:59:35 PM, si napisal(a):
> #!/bin/bash
> if ! echo $PATH | /bin/grep -q "/bla" ; then
> echo Not set
> PATH=$PATH:/home/branko/bla
> export PATH
> echo $PATH
> fi
> zakaj to ne export a poti...(PATH)???
Jaz bi se tega malce drugace lotil oz. z drugacnim pogojem:
if [ `echo $PATH|grep -q "/bla" |wc -l` -eq 0 ]; then
echo Not Set
...
fi
GreetZ, Stojan
---------------
Clean mind, clean body: take your pick.
More information about the lugos-list
mailing list