Save the file by hitting Ctrl+O, then quit nano with Ctrl+X. Close the terminal window. (You can type the command exit to do ...
Regarding the ability to create a double-clickable Terminal script (see previous item), Scott Lahteine notes that: AppleScript Menu can do more than just run AppleScripts. It allows you to run Perl ...