Computing.Net > Forums > Unix > emacs copy question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

emacs copy question

Reply to Message Icon

Name: rayray705
Date: May 9, 2007 at 14:46:00 Pacific
OS: solaris
CPU/Ram: 2.8ghz/512mb
Comment:

Hi,
How can I copy lines of codes from one file to another? All data in the buffer is lost when I copy text and close the file to open another file. Many thanks in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: JoeBrewski
Date: May 10, 2007 at 08:14:17 Pacific
Reply:

Use vi, or just cp and strip out the stuff you don't want.

In if you're not familiar with vi I suggest you learn how to use it including command codes. In vi, you can use the yy command to copy lines, and then p to paste the copied code into another area (ex 5yy will copy 5 lines).

Joe

All Your Base Are Belong to Us


0

Response Number 2
Name: rayray705
Date: May 10, 2007 at 08:24:53 Pacific
Reply:

I am able to copy text from one part of the file to another part of the same file. But I need to copy text from one file to another. How can I do it?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: emacs copy question

Script question.... www.computing.net/answers/unix/script-question/7518.html

programming questions www.computing.net/answers/unix/programming-questions/2508.html

files copy from other system www.computing.net/answers/unix/files-copy-from-other-system/7227.html