Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'No need for a text editor' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
No need for a text editor
Authored by: kenahoo on Sep 05, '07 07:53:00PM
Instead of this whole dance:
Copy and paste the text into your favorite pure text editor (or any Terminal text editor, such as vi or pico. Save it, then open Terminal and cd to the spot where you saved it.
You can just do:
Copy the text, open Terminal and cd to the spot you want to save it, then do pbpaste > script.sh.
The pbpaste command and its counterpart pbcopy are extraordinarily useful when switching context between the GUI and Terminal - the hardest part is remembering they exist. =)

[ Reply to This | # ]