Setting up an alias for 'pkg info | awk'
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sat Jan 17 09:23:37 UTC 2015
On 2015/01/17 08:59, Manish Jain wrote:
>
> 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 ?
pkg info -q
Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 882 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20150117/df736f32/attachment.sig>
More information about the freebsd-questions
mailing list