Shell script question.

Alexios Chouchoulas alexios at vennea.demon.co.uk
Fri Apr 25 02:48:13 EEST 1997


On Thu, 24 Apr 1997, Dimitrios P. Bouras wrote:

>   Diaforoi tropoi yparxoun. O parakatw mou'r0e prwtos sto
>  myalo san paradeigma:
> 
> n=0
> while [ $n != 15 ]; do
>     <Oi entoles pou se endiaferoun edw>
>     n=`expr $n + 1`
> done

  An xrhsimopoieis bash, den yparxei logos na ekteleseis thn expr(1):

n=0
while [ $n != 15 ]; do
	commands...
	n=$[ $n + 1 ]
done

  Einai fanera pio grhgoro giati xrhsimopoiei mono bash builtins gia ta
tmhmata elegxou tou loop.


>  PS. man bash, man test, man expr  :)

  Klap klap klap! :-)


Alexios Chouchoulas          '88    ,88'   ,88'     alexios at vennea.demon.co.uk
The Unpronouncable One      ,o88oooo88ooooo88oo,              axc at dcs.ed.ac.uk

--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argeas.argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte  e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list