Hi everyone.. I'm a full-fledged newbie so bear with me. =)
I'm running code in the shell, and I'd like to copy the lines into a text file. Everytime I try using Contrl-C, the lines repeat as code. Is there some sort of export history function I can use?
1) you can copy history from history file (e.g. if you use bash shell it will be ~/.bash_history)
2) if you use xterm (or gnome-terminal, etc.) just select block of text with mouse and it will be stored in the buffer
3) see bash(1) (or corresponding man for your shell), section 'Killing and Yanking'