Answers for "grep search string in file"

0

search of string with grep

grep 'searchText' fileName
Posted by: Guest on August-03-2021
-1

grep string in file

if grep -Fxq "pattern_to_search" file.txt; then #check if pattern string in file
  #do something
fi
Posted by: Guest on November-02-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language