Maybe collected into one place and printed in a convenient format? ;-)

Possibly one of the more useful books I've bought. It's not the sort of book that I've gone back to often, but provided enough inspiration to help me when Googling for "how do I..." 


On Fri, Feb 3, 2017 at 6:06 PM, Gregory Matthews <> wrote:
well... vim, awk and sed probably deserve their own list of "tricks" and recipes.


On 11/01/17 18:13, Tina Friedrich wrote:
Wouldn't count mutt a CLI trick as such :) That's more 'essential software
that'll beat the pants of anything with a GUI'?

I'd add 'vim' to that list...

Anyway - for what I'd call CLI tricks I'll give you

 * <ctrl>r to search your command history

 * !!, !$, !^ and !*

 * brace expansion in bash ('echo h{e,a,u}llo {foo,bar}' or 'cp
file{1,2,3} /tmp'

 * bash string/parameter manip capacities in general

 * bash arrays

 * cd -

 * '^string^string2' to re-run your last command with 'string' replaced by

 * rename

 * find

 * xargs

 * perl -e (for when bash fails me :) )


I think I could continue this list for quite some time :)



On Wed, Jan 11, 2017 at 02:02:47PM +0000, Paul Moore wrote:

Thanks for the posts on editors.  I'm currently updating a Gedit macro
plugin, and will distribute it when I get it working.

What are your favourite CLI tricks?  In my environment, my favourites

# pop up a terminal

# close it

# MATLAB-style command recall
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'

Also see @climagic on Twitter - quite good if you need to animate a
dancing rabbit in your terminal.


Philip Allen, Executive Chairman, CoreFiling Limited
Phone: +44-1865-203192  Mobile: +44-7956-160959

Greg Matthews        01235 778658
Scientific Computing Group Leader
Diamond Light Source Ltd. OXON UK

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom