这里就是我试图运行: grep "this is a test" * | wc -l
这里是我得到的错误: Argument list too long
基本上我想指望在一个目录多个文件如何有一个特定的字符串在其中。 我已经看到了几个与这个错误有关的问题,但他们都没有重点关注之后的结果。任何建议,将不胜感激。
我有一个文件$ HOME /富/ foo.mov if [[ -f $HOME/**/*.mov ]]; then
echo "file is there" else
echo "file is not there"
fi
回声 “文件不存在”。然而, if [ -f $HOME/**/*.mov ]]; then
echo "file is there" el