# online command
curl cht.sh/find
# find by name
find . -name "*.log"
# 查找内容
grep "hello" example.txt
grep -r "hello" my_directory
find directory | xargs grep "string"
# udpate filename
find . -type f -name 'some.*' | while read FILE; do
newfile="$(echo ${FILE} | sed -e 's/some/result/')"
mv "${FILE}" "${newfile}"
done
# delte size < 1k
find -size 1k -delete
# linux
sed -i 's/oo/kk/g' testfile
# Mac
sed -i "" 's/oo/kk/g' testfile
# example
sed -i 's|https://github.com|https://ghp.ci/https://github.com|g' example.txt