假设我输入这个命令:
find /etc/info/ -name ".c" | xargs -I {} grep -l 'importantFile' {}
现在我有了所有我感兴趣的文件,它们的后缀为 .c 和关键字“importantFile”。如何将其移动到我当前的目录之一(名称:文件夹)?
我试过了:
find /etc/info/ -name ".c" | xargs -I {} grep -l 'importantFile' {} mv{} ./folder
它不起作用。请帮助:p