From: "Buchs, Kevin" <buchs.kevin@mayo.edu>
To: <help-gnu-emacs@gnu.org>
Subject: RE: emacs for beginners (copy and paste)
Date: Fri, 12 Apr 2013 18:28:13 -0500 [thread overview]
Message-ID: <F326B9A37B353A449FC7A09B36835F82012F4FFA@MACE.sppdg.ad> (raw)
Welcome to emacs. You haven't said what you would like to do with the
values. One option might be that you want the numbers to be a list of
one number per line. Or, maybe you want the numbers with commas
separating them. In either of these cases, I would suggest you use a
couple of regular expression replacements to transform your given
contents. Position your cursor ("point") before the range. Then enter
M-x (usually that is Alt key held down while you press the x key),
followed by typing: replace-regexp. Press enter. Next you can type this
(carefully match it):
delta_ref: [0-9]+ delta_eff:
Note there is a trailing blank at the end of that line. Next press
enter. Again press enter. Now, repeat this in a similar fashion,
starting with M-x replace-regexp. Enter and
gamma_ref: [0-9]+ gamma_eff:
Note trailing blank. Press enter twice. Now, one more time, this being a
bit more complicated: M-x replace-regexp, enter and:
-+ MOUVEMENT M[0-9]+ -+
Then press Control-q followed by Control-j. Then continue to type:
alpha_ref: [0-9]+ alpha_eff:
Note there is a trailing blank at the end of that line. Now press enter
twice.
Now you should have something like:
11
04
00
15
00
01
...
If you make a mistake at some point, press Control-g to abort. Then you
can also press Control-x followed by Control-u to undo the last change.
Repeat C-x and C-u to undo further back.
Kevin Buchs | Senior Engineer | SPPDG | 507-538-5459 |
buchs.kevin@mayo.edu
Mayo Clinic | 200 First Street SW | Rochester, MN 55905 |
http://www.mayo.edu
next reply other threads:[~2013-04-12 23:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 23:28 Buchs, Kevin [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-04-12 9:47 emacs for beginners (copy and paste) piconese.as
2013-04-12 19:40 ` Barry Margolin
2013-04-29 17:43 ` Ken Goldman
2013-04-13 8:31 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F326B9A37B353A449FC7A09B36835F82012F4FFA@MACE.sppdg.ad \
--to=buchs.kevin@mayo.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.