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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@kermit pw $ find . -name "*pyc" -exec ls -l {} \; >> stuff_of_interest
> pw@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__

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux