How to send working command to a specified file or desktop

Hi
Is there any way to save the command using on the terminal to a specified file with out typing it in a word.

for ex.

awk '{print $1)' input.txt

Is it possible to save (in wordpad or microsoftword) and send the text of the command "awk '{print $1)' input.txt" to a targetted file in a computer

Thanx for the help in advance

Can't you do a echo to a file like below:

 
echo "awk '{print $1)' input.txt" > /tmp/temp.txt
mailx (or sendmail) < /tmp/temp.txt
 

Regards,

Praveen