Jay Roy
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
>>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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.