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
}
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
}