How can I find if a pattern has occurred in a variable in if condition.
Eg:
var1="DEFABCTY"
var2="EFGH"
How can I use if in shell script to find which of the two variables has "ABC" using if statement.
How can I find if a pattern has occurred in a variable in if condition.
Eg:
var1="DEFABCTY"
var2="EFGH"
How can I use if in shell script to find which of the two variables has "ABC" using if statement.