简体   繁体   English

“查找”linux 命令的使用

[英]Usage of "find" linux command

My question is about linux commands.我的问题是关于 linux 命令。 I need to find all ".sh" files and I need to delete all the files which end with ".sh" extension automatically.我需要找到所有“.sh”文件,并且需要自动删除所有以“.sh”扩展名结尾的文件。 Could anyone please help me out by giving suitable linux command for it?任何人都可以通过给出合适的 linux 命令来帮助我吗?

find . -type f -name '*.sh' -exec rm {} \;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM