Say I want to match either sh
or /sh
. I've tried to change the order of the two characters like this [/^]sh$
, but this will match /sh
or ^sh
, "the caret character" rather than "the beginning of the line". Escaping the ^
with \
has the same result. So is it possible to do this using the brackets syntax?
PS: I'm using grep in ADB shell, the grep here may be a little different than in standard *nix systems.