Recursively find and replace with bash by leveraging the grep
and sed
command.
grep -rlG <regexp pattern> <path> | xargs sed -i '' 's/pattern/replacement/g'
// ==UserScript== | |
// @name set video playback rate | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description change the playback rate of the video | |
// @author wayou | |
// @match *://pan.baidu.com/* | |
// @match *://www.zealer.com/* | |
// @grant unsafeWindow | |
// @grant GM_addStyle |
# with git: | |
git ls-files | wc -l | awk '{$1=$1;print $1 " total"}';git ls-files| sed 's/.*\.//' | sort | uniq -c | sort -r|awk '{$1=$1;print}' | |
# without git | |
find . -type f | wc -l | awk '{$1=$1;print $1 " total"}'; find . -type f | sed 's/.*\.//' | sort | uniq -c | sort -r|awk '{$1=$1;print}' |
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
Beyond Compare 4 | |
Licensed to: ASIO Allsoftinone | |
Quantity: 1 user | |
Serial number: 1822-9597 | |
License type: Pro Edition for Windows | |
--- BEGIN LICENSE KEY --- | |
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ | |
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja | |
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t |
display: ; | |
visibility: ; | |
float: ; | |
clear: ; | |
position: ; | |
top: ; | |
right: ; | |
bottom: ; | |
left: ; |
{ | |
"folder_exclude_patterns": | |
[ | |
"_output", | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules", | |
".DStore" |
// Place user-specific overrides in this file, to ensure they're preserved | |
// when upgrading | |
{ | |
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"] | |
} |