- 文件批量搜索(linux/mac)
1
find ./ -name 'xxx.log' -type f|xargs grep 'hello'
- 批量重命名文件 (linux/mac)
1
ls |xargs -I {} mv {} {}.bak
- 删除指定文件(linux/mac)
1
ls file_1*.bak |xargs -I {} rm -rf {}
- 按照指定字段拆分输出(linux)
1
echo "abcDabcDabcD"|xargs -dD
原文作者:Neo Anderson
原文链接:https://www.neofaster.cc/archives/7070c818.html
发表日期:November 23rd 2020, 2:38:14 pm
更新日期:August 28th 2021, 11:07:05 am
版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可
-
Next PostDebug-Tip
-
Previous PostSprint-Boot 运行 Java System Properties Properties说明