lundi 4 septembre 2017

if condition to check if two strings stored in a variable occur one after other in a file

$cat list Hi welcome one two good evening

Value1="two" value2="evening"

Need to know the if condition command to check if both variable value occur one after the other in a file 1) if both variable value occur one line after other in a file, then echo some statement

Aucun commentaire:

Enregistrer un commentaire