Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to select the text in a log file (~900 lines) and paste it into a normal text file.

However, I am on my server via PuTTY so when I do :%y+ or gg"+yG it does not let me paste it.

By any chance is there a way to select text from Vi through PuTTY?

share|improve this question
    
There's probably a better way to do it: what is your criteria for selecting the text? I'm guessing sed is a better tool than vi. –  glenn jackman Jun 7 '13 at 17:29
    
Are you running putty on windows? –  parkydr Jun 7 '13 at 17:40
    
Are you using ssh to connect? –  parkydr Jun 7 '13 at 18:06
    
putty on windows –  ealeon Jun 7 '13 at 18:16

1 Answer 1

up vote 2 down vote accepted

If you have ssh access to the file, can you use SFTP to just download the log file?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.