The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Shell script to search for text in a file and copy file imeadows UNIX for Dummies Questions & Answers 9 11-12-2008 09:12 PM
DOS/Windows CR to a UNIX LF 17 MB text file tex Windows & DOS: Issues & Discussions 9 05-22-2008 12:31 AM
I want to copy the text output from a 'nohup.out' file. Iamthe great UNIX for Dummies Questions & Answers 3 05-01-2007 12:41 PM
Automatic Copy of File Contents to Clipboard ilak1008 Shell Programming and Scripting 5 10-10-2006 11:43 AM
how to remove ^M from windows text file in unix pragy1999 Shell Programming and Scripting 1 04-13-2006 10:04 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-21-2006
zhshqzyc zhshqzyc is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 34
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.
  #2 (permalink)  
Old 09-21-2006
anbu23 anbu23 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
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.
  #3 (permalink)  
Old 09-21-2006
zhshqzyc zhshqzyc is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 34
What I used is PuTTy.
How to do it?
tkx
  #4 (permalink)  
Old 09-21-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
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.
  #5 (permalink)  
Old 09-21-2006
nathan nathan is offline VIP Member  
Supporter
  
 

Join Date: Jul 2006
Posts: 156
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.
  #6 (permalink)  
Old 09-22-2006
congo congo is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 31
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
  #7 (permalink)  
Old 09-22-2006
zhshqzyc zhshqzyc is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 34
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?
Sponsored Links
Closed Thread

Bookmarks

Tags
linux, sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0