find . -type f -print -exec cat {} \; | grep some string
上面的命令不打印文件路径。
我正在使用:Ubuntu, bash 4。
Ubuntu, bash 4
bash find
bash ×1
find ×1