From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 09:00:49 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 0699AB5A for ; Sat, 17 Jan 2015 09:00:49 +0000 (UTC) Received: from BLU004-OMC4S5.hotmail.com (blu004-omc4s5.hotmail.com [65.55.111.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A7B5C5C for ; Sat, 17 Jan 2015 09:00:48 +0000 (UTC) Received: from BLU437-SMTP51 ([65.55.111.135]) by BLU004-OMC4S5.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Sat, 17 Jan 2015 00:59:33 -0800 X-TMN: [MpabUOvqT6bSvmhHTpG6OLOKs4n98mUt] X-Originating-Email: [bourne.identity@hotmail.com] Message-ID: Date: Sat, 17 Jan 2015 14:29:22 +0530 From: Manish Jain User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Setting up an alias for 'pkg info | awk' References: In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Jan 2015 08:59:30.0823 (UTC) FILETIME=[E7D91970:01D03233] 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:00:49 -0000 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