shell xargs技巧

find /home/tomcat8-hk/ -name '808*.sh' | xargs -i sed 's@CATALINA_HOME="/home/tomcat8-hk/apache-tomcat-7.0.105"@CATALINA_HOME="/home/tomcat8-hk/apache-tomcat-7.0.109"@g' {}
posted @ 2022-07-19 10:05  技术颜良  阅读(21)  评论(0编辑  收藏  举报