我有一个关于diff命令的问题,如果我想要一个递归目录diff但只针对特定的文件类型,怎么做?
我尝试使用exclude选项,但只能使用一个模式:
$ diff /destination/dir/1 /destination/dir/2 -r -x *.xml
Run Code Online (Sandbox Code Playgroud)
用命令我只能排除XML文件类型,即使是在文件夹中的图像类型的文件(png,gif,jpg)txt,php等
如何只区分某些文件类型.
我没有找到Mac的查找没有-printf选项的原因.Apple通常决定采取与其他命令不正交的选项吗?
如何在没有coreutils的Mac中获得与以下命令相同的结果?
find . -printf "%i \n" // command in Ubuntu
Run Code Online (Sandbox Code Playgroud)