xxxxxxxxxxxx

October 6, 2017 by ntk1000

replace string under directory via sed

find . -type f -print | xargs sed -i -e 's/before/after/g'

vim changelog add .xshrc this function

function zs() {
    LOG=/path/to/logfile
    sed -i -e "4i ## `date +'%Y-%m-%d'`" $LOG | vim $LOG
}