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

Frank Barknecht fbar at footils.org
Mon Dec 22 16:18:17 EST 2003


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__



More information about the Linux-audio-user mailing list