Thursday, April 28, 2016

Search and Replace

Here's a quickie, but goodie...


sed-i -e "s/alice/bob/g" data.json


That will replace every instance of "alice" with "bob" in the file, data.json





This work is licensed under the Creative Commons Attribution 3.0 Unported License.

Wednesday, April 13, 2016

Page Up & Down in VIM and ITerm2

Sometimes I just forget the easy stuff...

VIM

PAGE UPCTRL+b--OR--FN+UpArrow
PAGE DOWNCTRL+f--OR--FN+DnArrow

ITERM2

PAGE UPfn+Command+UpArrow
PAGE DOWNfn+Command+DnArrow

References



This work is licensed under the Creative Commons Attribution 3.0 Unported License.