Skip to content

Instantly share code, notes, and snippets.

@denitram
denitram / bash_handy
Last active December 28, 2017 12:02
bash handy tips
#--- Commandline history substitution
* Replace old by new in prevous command
^old^new
^old^new is equivalent to !!:s/old/new
* Replace globally
!!:gs/old/new
#--- Batch renaming file