利用openssl随机生成密码:
openssl rand -base64 32 |head -c 10 ; echo
find . -mtime +7 -type f -exec mv {} 202303 ;
ls |grep -v tar |xargs -I {} sudo sh -c " tar czvf '{}'.tar.gz -i {};rm -rf {}"
利用openssl随机生成密码:
openssl rand -base64 32 |head -c 10 ; echo
find . -mtime +7 -type f -exec mv {} 202303 ;
ls |grep -v tar |xargs -I {} sudo sh -c " tar czvf '{}'.tar.gz -i {};rm -rf {}"
本文标题:常用shell脚本
本文链接:https://www.haomeiwen.com/subject/xcaurdtx.html
网友评论