From owner-freebsd-chat Tue May 9 8: 1:47 2000 Delivered-To: freebsd-chat@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id 13EF037B77E; Tue, 9 May 2000 08:01:43 -0700 (PDT) (envelope-from hoek@FreeBSD.org) Received: from Hamilton-ppp44812.sympatico.ca (Hamilton-ppp44855.sympatico.ca [206.172.76.48]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id LAA19618; Tue, 9 May 2000 11:07:43 -0400 (EDT) Received: (from tim@localhost) by Hamilton-ppp44812.sympatico.ca (8.9.3/8.9.1) id KAA63198; Tue, 9 May 2000 10:43:05 -0400 (EDT) (envelope-from tim) Date: Tue, 9 May 2000 10:43:05 -0400 From: Tim Vanderhoek To: Bruce Evans Cc: "Jeroen C. van Gelderen" , "David O'Brien" , Jeroen Ruigrok van der Werven , chat@FreeBSD.org Subject: Re: Small MAKEDEV bug Message-ID: <20000509104305.B62847@Hamilton-ppp44812.sympatico.ca> References: <20000508191556.A47871@Hamilton-ppp44812.sympatico.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: ; from Bruce Evans on Tue, May 09, 2000 at 07:43:01PM +1000 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [-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