[PLUG] Saving terminal commands
Michael M. Moore
michael at writemoore.net
Thu Feb 5 19:17:26 UTC 2009
On Thu, Feb 5, 2009 at 5:08 AM, David Fleck <david.fleck at mchsi.com> wrote:
> On Wed, 4 Feb 2009, John Jason Jordan wrote:
>> Is there a way to make it just give me the command but not run it?
>
> Yes. aliases will do that. For example,
>
> alias gh='history | grep'
>
> allows me to type
>
> gh foo
>
> and any of my past commands containing 'foo' will be listed. NOT executed,
> listed.
>
Cool! I never thought of using aliases involving grep. Thx much.
Michael M.
--
"Rightful liberty is unobstructed action according to our will within
limits drawn around us by the equal rights of others. I do not add
'within the limits of the law' because law is often but the tyrant's
will, and always so when it violates the rights of the individual."
--Thomas Jefferson
More information about the PLUG
mailing list