From owner-freebsd-questions@FreeBSD.ORG Sat Jul 13 13:36:52 2013 Return-Path: Delivered-To: questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AB9F2E32; Sat, 13 Jul 2013 13:36:52 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 9AE9F10BA; Sat, 13 Jul 2013 13:36:52 +0000 (UTC) Received: from [10.0.10.1] ([173.88.196.224]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 13 Jul 2013 06:36:47 -0700 Message-ID: <51E157F1.8090208@a1poweruser.com> Date: Sat, 13 Jul 2013 09:36:49 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Devin Teske Subject: Re: jls usage References: <51DF59B1.4020107@a1poweruser.com> <13CA24D6AB415D428143D44749F57D7201FBF9CF@ltcfiswmsgmb21> In-Reply-To: <13CA24D6AB415D428143D44749F57D7201FBF9CF@ltcfiswmsgmb21> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Jul 2013 13:36:47.0800 (UTC) FILETIME=[05D29380:01CE7FCE] X-Sender: fbsd8@a1poweruser.com X-Authenticated-Sender: fbsd8@a1poweruser.com X-EchoSenderHash: [fbsd8]-[a1poweruser*com] Cc: questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jul 2013 13:36:52 -0000 Teske, Devin wrote: > On Jul 11, 2013, at 6:19 PM, Fbsd8 wrote: > >> In a .sh script I'm trying to get the jid for a single jail using this code >> >> jid=`jls -j jailname | cut -f 1- | awk '{print $1}'` >> > > Looks a little over complicated... why not just.. > > jls -j jailname jid Thanks Devin. Thats what I was looking for.