From owner-freebsd-questions@FreeBSD.ORG Wed Jan 25 15:28:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED7F016A41F for ; Wed, 25 Jan 2006 15:28:11 +0000 (GMT) (envelope-from user@dhp.com) Received: from shell.dhp.com (shell.dhp.com [199.245.105.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id A707C43D6B for ; Wed, 25 Jan 2006 15:28:11 +0000 (GMT) (envelope-from user@dhp.com) Received: by shell.dhp.com (Postfix, from userid 896) id D7FF0312FA; Wed, 25 Jan 2006 10:28:10 -0500 (EST) Date: Wed, 25 Jan 2006 10:28:10 -0500 (EST) From: Ensel Sharon To: Luke Bakken In-Reply-To: <6acc6ca40601250710x3b0de685j2d7168f6ac5442a0@mail.gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: shell scripting question (mdconfig device choosing) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 15:28:12 -0000 On Wed, 25 Jan 2006, Luke Bakken wrote: > > Thank you very much - you got no output because you have no md devices in > > use. I have a few in use and this is the output I get: > > > > # mdconfig -l > > md3 md2 md1 md0 > > > > But I could just as easily get: > > > > # mdconfig -l > > md9 md8 md5 md3 > > > > Hmm...I just saw that that line is in perl, and I do not have perl > > installed on any of my 6.0 machines ... I am not sure I want to install it > > just for this one shell script :( > > Whoops, I forgot that perl isn't in the base any more. What scripting > languages do you have? If you only have sh, I'll work on that, but it > won't be a one-liner most likely. Or a C program. I am putting this into a larger, already written /bin/sh program ... doesn't need to be one line ... Wow - thanks a lot for your help.