"^[" in the above script doesn't mean two characters: ^ and [ but one character: escape. To get it you could use vim. It's enough to go to editing mode, to press Ctrl-V for literal mode, and to press Esc for escape character.
If you're not acquainted with vim try that sequence:
Open the script with the command: vim your_script_name.
Go to the desired position using arrows.
Press i (lowercase i) for insert mode.
Press Ctrl-V (Ctrl and v) for literal mode.
Press Esc for escape character.
Press Esc to exit editing mode.
Press ZZ (uppercase Z twice) to save changes and exit vim.
|