Setting up an alias for 'pkg info | awk'

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


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 &

Manish Jain

More information about the freebsd-questions mailing list