Now I need to find out with the help of grep if the array has got "Sun" and "Moon". If found both are present in the array then return true otherwise if does not found both of them present in the array then return false.
I am actually looking for the above queries solution in single statement.
Thanks in advance.. SR
Edit: g0n - formatting tags & removed pre tags
In reply to using grep to match more than two words by sroy5
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |