Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
bash if file contains string
simbo1905
Programming language:
Shell/Bash
2021-05-10 11:06:51
0
Q:
bash if file contains string
Anindya Mandal
Code:
Shell/Bash
2021-02-12 06:54:03
if grep -q SomeString "$File"; then Some Actions # SomeString was found fi
0
Tags
string
file
con
Related
bash find text in specific file
bash check if string does not exist in file
bash print rows that contain substring in field
bash find files or operator
bash check if string in file
bash check if string ends with slash
bash search and replace text in file
bash find files and operator
bash print line if column value is in column of another file
bash ls exclude file
checking if a substring exists in a string bash
bash if string does not start with
bash if else if
New to Communities?
Join the community