From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 09:23:37 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0ACE5CD0 for ; Sat, 17 Jan 2015 09:23:37 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A3D8DE92 for ; Sat, 17 Jan 2015 09:23:36 +0000 (UTC) Received: from maggot.black-earth.co.uk (maggot.black-earth.co.uk [81.2.117.101]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t0H9NPsi060079 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 17 Jan 2015 09:23:25 GMT (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t0H9NPsi060079 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1421486605; bh=N/HOhu8c83V8yFwTRFUxODzDOZw0gks4ulA7dzyuVJ0=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Sat,=2017=20Jan=202015=2009:23:22=20+0000|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20Setting=20up=20an=20alias=20for=2 0'pkg=20info=20|=20awk'|References:=20=20=20|In-Reply-To:=20 ; b=JPWCE6vh/4n17BZsQKHN7RbpGLJfiNh8WTdacYJjpH5evEJT06XcsASupYMgSpbzm /SUINi02gYRP+ctgjFyaXv5E4TmF6zrhpjAdimPxtYvy11JDQatX6pWoGc9Bbdyrc2 IKn+dPtKur+4vl1nP1Yz4wp2DXRKyZgiFGzLHbO0= Message-ID: <54BA2A0A.4020704@infracaninophile.co.uk> Date: Sat, 17 Jan 2015 09:23:22 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Setting up an alias for 'pkg info | awk' References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rXV7cS11BsdGbrF3AxO8wiPqMdlCAaqeb" X-Virus-Scanned: clamav-milter 0.98.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2015 09:23:37 -0000 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--