在當下目錄找出含有 "vim" 字串的檔案並刪除它們
find . -maxdepth 1 -mindepth 1 -type f | grep vim -exec rm {} \;
將 ~/Google Drive/habits 資料夾下的子資料夾個別建立 link 至 ~/habit 資料夾下
find -P `pwd` /Google\ Drive/habits -mindepth 1 -maxdepth 1 -type d -exec ln -fns {} habit \;
find . -name \*.cpp -exec grep -q "debug" '{}' \; -print
查看 Ubuntu 的發行版代號 (Codename)
找出含有特定字串的資料夾後, 將這些資料夾移動到另一資料夾下
ls | grep -v "OPV-1778" | grep "OPV" | xargs -I '{}' mv '{}' done
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git remote -v
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
git remote add pb https://github.com/USERNAME/OTHERREPOSITORY.git
git remote show pb
git remote rename pb paul
git remote rm paul
git ls-tree -r master --name-only
Untrack Files In Git Repos Without Deleting Them
echo "*.config">>.gitignore;
git rm --cached "*.config";
git add .;
git commit -m "Ignoring and deleting config files." ;
git push origin;
git ls-files | awk '!/java/ && !/gitignore/' | xargs git rm --cached