Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 May 2000 10:43:05 -0400
From:      Tim Vanderhoek <vanderh@ecf.utoronto.ca>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        "Jeroen C. van Gelderen" <jeroen@vangelderen.org>, "David O'Brien" <obrien@FreeBSD.org>, Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>, chat@FreeBSD.org
Subject:   Re: Small MAKEDEV bug
Message-ID:  <20000509104305.B62847@Hamilton-ppp44812.sympatico.ca>
In-Reply-To: <Pine.BSF.4.21.0005091921280.7590-100000@besplex.bde.org>; from Bruce Evans on Tue, May 09, 2000 at 07:43:01PM %2B1000
References:  <20000508191556.A47871@Hamilton-ppp44812.sympatico.ca> <Pine.BSF.4.21.0005091921280.7590-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
[-current -> -chat]

On Tue, May 09, 2000 at 07:43:01PM +1000, Bruce Evans wrote:
> 
> > > >     MAKEDEV $(jot -w da 2 0)    # make 2 acd devices beginning at acd0
[...]
> > The jot utility doesn't appear to be in /bin.
> 
> You can just type all the device names or use a shell loop when /usr/bin
> is not mounted.

b$ a=0; ./MAKEDEV $(while [ $a -ne 2 ] ; do echo da$a ; a=$(($a + 1)) ; done)

Advantages: - no strange jot(1) syntax to remember
            - uses only standard tools and the UNIX way
            - easily modified and customized
            - prevents our users from getting rusty in the sh(1) abilities

That's how *I* would do it, anyways.  ;-)  ;-)


-- 
Signature withheld by request of author.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000509104305.B62847>