📜  文件中的 grep 字符串 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:42.590000             🧑  作者: Mango

代码示例1
if grep -Fxq "pattern_to_search" file.txt; then #check if pattern string in file
  #do something
fi