Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 2015 14:29:22 +0530
From:      Manish Jain <bourne.identity@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Setting up an alias for 'pkg info | awk'
Message-ID:  <BLU437-SMTP5127A51A909BBF868937B4F64C0@phx.gbl>
In-Reply-To: <BLU436-SMTP220A1C5AFBDA897CC34F219F64F0@phx.gbl>
References:  <mailman.60.1421409601.72162.freebsd-questions@freebsd.org> <BLU436-SMTP220A1C5AFBDA897CC34F219F64F0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi,

I am trying to list out all the ports on my system with a Bash shell alias :

alias pia="pkg info | awk '{print $1}'"

But this alias simply prints the output of 'pkg info'.

Is there some way to do this ?


Thanks &
Regards

Manish Jain
+91-98995-82709



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