Date: Sat, 17 Jan 2015 09:23:22 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: Setting up an alias for 'pkg info | awk' Message-ID: <54BA2A0A.4020704@infracaninophile.co.uk> In-Reply-To: <BLU437-SMTP5127A51A909BBF868937B4F64C0@phx.gbl> References: <mailman.60.1421409601.72162.freebsd-questions@freebsd.org> <BLU436-SMTP220A1C5AFBDA897CC34F219F64F0@phx.gbl> <BLU437-SMTP5127A51A909BBF868937B4F64C0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rXV7cS11BsdGbrF3AxO8wiPqMdlCAaqeb Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015/01/17 08:59, Manish Jain wrote: >=20 > Hi, >=20 > I am trying to list out all the ports on my system with a Bash shell > alias : >=20 > alias pia=3D"pkg info | awk '{print $1}'" >=20 > But this alias simply prints the output of 'pkg info'. >=20 > Is there some way to do this ? pkg info -q Matthew --rXV7cS11BsdGbrF3AxO8wiPqMdlCAaqeb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUuioTAAoJEABRPxDgqeTnOK8P/RGDI1+HpeZZaQXG3FRGrm6I MGrPhT1Itg7S64jRaRJtBXm1YsFYKs+l0ToT2FgCl1LzbHxm/4YQLxfY41ghhqh/ RpySLULeHzesJ1W6BgXwI4n7oYxfO8On6HT5qy4KyINlefAqdEEIHjdwHWr13c3J TLxaUjxsig5lqenynVgfbvjZHRSUsRWrC1KCmMMCCBsdvzmM5fM0ndeQOoeI81Qh eLk6QCN4sknxgyYF0+N31OxKxk04jUiLuXRGM1Kz0DuIS46z6pP3HiksipVnW9G3 sUG+G+px7LNRSPg7xcB1EwJrao4BiAytkiivMDrIiVEMPmnuzM9giYwuNZPUT6bb 5YscqQ+HlvPOIwsmdnPJIMDENShTWtvJQFXaj7qgP/iE0R0hg0QpT2O9CZM/DqFK pbIcmswWRZDFUx89ClzB/rWGWb8puw/y7L2mNypqi/B+DKziKs6M8c0/6ha605CU gH0xefoOxsme0osKVXPk49EA1YLNR3pAgoOm9ZL7LlJ7mJDlMEiH+MNkaXXrIxt/ UF72Z0A8QfRNajy/ewMqMmjZ5hvb5oWatCoA3ZfavlRofHdAkgH6EwNZxpOg0Jj3 g1CBV9nN1v66nX0oi+XQ9hmM5xJpJCFKM8r4DcWWVR0NOQ6P/hFZYje1D+NGvwqF d6hMFLhQ1pQ30s0ZNS3r =2vRO -----END PGP SIGNATURE----- --rXV7cS11BsdGbrF3AxO8wiPqMdlCAaqeb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54BA2A0A.4020704>