YeS, etc. The
| means "or."
Matches a file pathname, like /xxx/yyy/somedir/file2, that starts with a slash, contains at least one more slash, and ends with a digit.
Matches the pattern
tell the shell to treat the string literally: not to break it at
the space and not to treat the
? as a wildcard.
Matches the contents of the msgs variable.
The double quotes let the shell substitute the variable's value; the
quotes also protext spaces and other special characters from the
shell. For example, if msgs contains
first next, then
this would match the same string,