我想了解这一行:
find $HOME -name "*.c" -exec grep "find this string" {} /dev/null \;
我理解其中的大部分,但我不确定/dev/null在{}之前和之后出现的情况;.
/dev/null
{}
;
find找到每个C程序文件,然后为每个文件grep查找包含字符串的行...然后将所有错误发送到/dev/null?
find
grep
unix bash grep exec find
bash ×1
exec ×1
find ×1
grep ×1
unix ×1