jls usage

Fbsd8 fbsd8 at a1poweruser.com
Sat Jul 13 13:36:52 UTC 2013


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.


More information about the freebsd-questions mailing list