Setting up an alias for 'pkg info | awk'

Manish Jain bourne.identity at hotmail.com
Sat Jan 17 09:00:49 UTC 2015


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


More information about the freebsd-questions mailing list