DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
bash if file contains string
if grep -q SomeString "$File"; then Some Actions # SomeString was found fi
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#bash
#file
#string
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit