1.删除除了某个名字之外的都删除掉
find -type f -not -name '*.wf.*' -exec rm {} \;
2.find命令
{} 是指查询到的结果集
3.xargs命令
xargs和find 的区别是find是一次性将结果集传入,而xargs是传部分
删除除了某个名字之外的都删除掉
原创
©著作权归作者所有:来自51CTO博客作者wx612ef79151558的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
AI要被祭天了!删Bug,删着删着把全部代码都删了
AI 要被祭天了!删Bug,删着删着把全部代码都删了
神经网络 sql数据库 微信