find .-type f -exec sed -i 's/AA/BB/g'{}+
find .-name "build"-exec rm {}-rf \;
find /-type f -name "example.txt"-exec cp {}/path/to/destination \;
计算
echo "obase=16;ibase=16;C0000000-80200000"|bc
重定向
https://blog.csdn.net/weixin_42031299/article/details/120101772
ls >/dev/null 2>&1// command >& /dev/null
标准输出和错误输出都舍弃掉;
ls 2>&1>/dev/null
标准输出被舍弃掉,错误输出被重定位到屏幕;
标准输出和错误输出都输出到文件,先清空文件,再输出到文件
ls > log.txt 2>&1
ls &> log.txt
标准输出和错误输出都输出到文件,不清空文件,追加到文件
ls >> log.txt 2>&1
ls &>> log.txt
查找新生成物
$ exportOLDDATE=`date'+%Y-%m-%d %H:%M:%S'`
$ do something
$ echofind. -type f -newermt \"$OLDDATE\" -print |bash