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 Tue Jun 18 14:25:22 DST 2019