几天前我开始学习 Bash。
我正在尝试将grep表达式的退出状态获取到这样的变量中:
grep
check=grep -ci 'text' file.sh
我得到的输出是
No command '-ic' found
我应该用管道命令来做吗?
command-line shell grep bash exit-status
bash ×1
command-line ×1
exit-status ×1
grep ×1
shell ×1