$cat list
Hi
welcome
one
two
good evening
Value1="two"
value2="evening"
For above file values, output should be echo "values are present one after the other line"
Need to know the if condition command to check if both variable values occur one after the other in a file.
If both variable values occur one line after other in a file, then echo some statement.
for example: $cat list Hi two one three good evening
in above condition, both variable value are not present one after the other line so output should be echo "values are not present one after the other line"