The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
DOS/Windows CR to a UNIX LF 17 MB text file tex Windows & DOS: Issues & Discussions 9 05-21-2008 09:31 PM
Shell script to search for text in a file and copy file imeadows UNIX for Dummies Questions & Answers 8 04-20-2008 01:41 PM
I want to copy the text output from a 'nohup.out' file. Iamthe great UNIX for Dummies Questions & Answers 3 05-01-2007 09:41 AM
Automatic Copy of File Contents to Clipboard ilak1008 Shell Programming and Scripting 5 10-10-2006 08:43 AM
how to remove ^M from windows text file in unix pragy1999 Shell Programming and Scripting 1 04-13-2006 07:04 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-21-2006
Registered User
 

Join Date: Feb 2006
Posts: 34
Stumble this Post!
Copy text from a file from VI editor to Windows clipboard

Copy text from a file from VI editor to Windows clipboard,
I mean copy entire file in vi editor to notepad.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-21-2006
Registered User
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Stumble this Post!
From windows use command prompt and do telnet to the unix system.
display the contents using cat. to copy the contents of the file right click on command prompt and open properties. select quick edit mode in edit options and select ok. select the contents of the file using mouse and press enter. now the text is in your windows clipboard. if the file is too large then ftp the file to your system.
Reply With Quote
  #3 (permalink)  
Old 09-21-2006
Registered User
 

Join Date: Feb 2006
Posts: 34
Stumble this Post!
What I used is PuTTy.
How to do it?
tkx
Reply With Quote
  #4 (permalink)  
Old 09-21-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
Stumble this Post!
PuTTY doesn't have a copy button. It doesn't need one, select any text in PuTTY and it's immediately copied to the clipboard.
Reply With Quote
  #5 (permalink)  
Old 09-21-2006
Supporter
 

Join Date: Jul 2006
Posts: 156
Stumble this Post!
You can highlight the text in PuTTy and that should copy the data to your clipboard. Then just paste it into notepad. As far as the entire file goes, I think you would have to highlight it all with your mouse. I don't believe you can copy the file to your windows clipboard using 'vi' on the remote machine.
Reply With Quote
  #6 (permalink)  
Old 09-21-2006
Registered User
 

Join Date: Jun 2006
Posts: 31
Stumble this Post!
using mailx

or you could simply forward the whole file to your mailbox (in windows or anywhere you have your email client) -using this unix command "more {filename} | mailx {you@email.tld}" - of course larger files are not surgested to mail forward (100 MB+). Are the file(s) that big FTP transfer are also my surgestion to you.

Hope you make it work
Reply With Quote
  #7 (permalink)  
Old 09-22-2006
Registered User
 

Join Date: Feb 2006
Posts: 34
Stumble this Post!
Code:
You can highlight the text in PuTTy and that should copy the data to your clipboard.
The entire file contains several pages.I can only highlight one page,the mouse cannot scrool down.

Code:
using this unix command "more {filename} | mailx {you@email.tld}"
-bash: mailx: command not found

What happened?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux, sendmail

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0