what does =~ means in if test statement.
Hello Guys,
I am trying to modify a shell script according to my requirements & i am seeing an if statement like below: if [[ "$i" =~ "you are guest " ]] ; then echo "Welcome Guest" Now, can someone please tell me what does that =~ test condition means??? It isn't causing any problems to me in modifying the script but just curious to know what it is exactly.. Thx in advance. |
This should help.
|
thx man!!
|
Mark the thread as solved.
|
All times are GMT -5. The time now is 06:49 PM. |