Link to home
Start Free TrialLog in
Avatar of Jay Roy
Jay RoyFlag for United States of America

asked on

Unix copy paste long lines

Dear experts
I have a Log file and it has close to 5000 lines
The lines are really long and using the mouse is not an option.
I would like to  copy a line and paste it in windows notepad.
Any idea how I can do that?

Thanks.
SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Are they individual lines, or one long line in the file?

If you do "wc -l < filename" do you get a line number count?

If so, you could use vi to position to the line you want, then yank it to another file.
Avatar of Jay Roy

ASKER

hi thanks
>>wc -l < filename
i get 500 which is the number of lines i have in my file.
i am trying to copy-paste like this
i open the file
$vi filename
i place the cursor on the first letter of the line which i want to copy
i then type    yyp
to copy it and go to word doc and paste it but doesnt seem to paste it.

am i doing it correctly?
thanks
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial