Re: Linux shell tips, was Re: [linux-audio-user] beeps are going to break my ears

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: Linux shell tips, was Re: [linux-audio-user] beeps are going to break my ears
From: Frank Barknecht (fbar_AT_footils.org)
Date: Mon Dec 22 2003 - 23:18:17 EET


Hallo,
Paul Winkler hat gesagt: // Paul Winkler wrote:

> Another great one is ^foo^bar^ which will repeat the most
> recent command but substitute the string "bar" for "foo". e.g.
> pw_AT_kermit pw $ find . -name "*pyc" -exec ls -l {} \; >> stuff_of_interest
> pw_AT_kermit pw $ ^pyc^pyo^
> find . -name "*pyo" -exec ls -l {} \; >> stuff_of_interest
>
> (Notice that it only does one substitution on the line.)

Cool, I didn't know that last one. I constanly also use M-. to input
the previous last argument. And then there is
bash's programmable completion, which is way cool for example because
it can do:

$ ssh <TAB>
shell.sourceforge.net
shell2.sourceforge.net
...

ciao

-- 
 Frank Barknecht                               _ ______footils.org__


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Dec 22 2003 - 23:23:21 EET