|   Linux Shell Scripting Tutorial (LSST) v1.05r3  | ||
|   Chapter 6: Learning expressions with ex  | ||
|   | ||
This command will replace, target pattern "Linux" with "Linux-Unix". & before - Unix means use "last pattern found" with given pattern, So here last pattern found is "Linux" which is used with given -Unix pattern (Finally constructing "Linux-Unix" substitute for "Linux").
 Can you guess the output of this command?
 :1,$ s/Linux-Unix/&Linux/p
| Using range of characters in regular expressions |   Converting lowercase character to uppercase  | |