|
| From: | Chris F.A. Johnson |
| Subject: | Re: feature-request: brief syntax for $(type -p somecommand) |
| Date: | Thu, 2 Apr 2009 12:33:12 -0400 (EDT) |
| User-agent: | Alpine 1.00 (LRH 882 2007-12-20) |
On Thu, 2 Apr 2009, Mike Coleman wrote:
[Oops--I sent that incomplete.] It would be nice if there was some really brief syntax for $(type -p somecommand) I find myself using this all day long with 'ls', 'file', 'ldd', 'strings', 'nm', etc., and the current incantation is just long enough to be annoying.
Use a function, e.g.:
p()
{
pp=$( type -p "$@" )
}
--
Chris F.A. Johnson, webmaster <http://woodbine-gerrard.com>
========= Do not reply to the From: address; use Reply-To: ========
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
| [Prev in Thread] | Current Thread | [Next in Thread] |