[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: IF statements on the command line in bash
- From: Thorsten Strusch <tst nc-ag de>
- To: redhat-list redhat com
- Subject: Re: IF statements on the command line in bash
- Date: Mon, 01 Oct 2001 17:38:23 +0200
Hi Rodolfo,
"Rodolfo J. Paiz" wrote:
>
> From the "I must have missed something" department:
>
> I often find myself needing to do simple, short if's or for's from the
> command line. However, I can't seem to get the hang of it. As an example,
> these two don't work:
>
> $ for i in 21 22 23 24 25 26 27 28 29 30 ; echo "Sep $i" ; done
Whats about this:
for i in `seq 9 255`; do mknod -m 660 "/dev/loop${i}" b 7 $i; done
This creates more loopdevices and if you append max_loop=255 in your
lilo.conf you can also use them ;-p
(view: /usr/src/linux/drivers/block/loop.c)
hth
Thorsten
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]