Command line snippets

sed

Search and replace in-place

sed -i 's/search/replace/g' *.py

git

Delete all git branches locally

git branch | grep -v \* | xargs git branch -D

Comments BETA





Page built on Sun Apr 7 22:36:46 BST 2019