unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* how to manipulate data like awk or perl when visiting a file
@ 2008-12-29  4:14 reader
  2008-12-30 14:34 ` Kevin Rodgers
       [not found] ` <mailman.3568.1230647701.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: reader @ 2008-12-29  4:14 UTC (permalink / raw)
  To: help-gnu-emacs

I want to get a leg up on how I might manipulate a file like I can
with shell tools or awk/perl.

Examples:  I want to display only the first field of lines 30 thru 75
           I want to reverse field 1 and 5 and print those plus 6 of
           each line.
           I want to add up the numbers that appears in field 7 of
           lines 11 through 28 printing the total to ~/sumtot.txt

I'd like to see a few basic examples and maybe I'll be able to get the
idea enough to do some of that when I need to.

I don't really want to start way at the beginning of elisp to get
started.   I hoped maybe there are some examples like that available
in existing info documents.

I haven't noticed much talk here about those kinds of chores so maybe
elisp isn't a good choice for that?





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-12-30 15:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3478.1230524085.26697.help-gnu-emacs@gnu.org>
2008-12-29  6:02 ` how to manipulate data like awk or perl when visiting a file rustom
2008-12-29  6:19   ` poppyer
2008-12-29  6:14 ` Xah Lee
2008-12-30  6:59   ` Harry Putnam
     [not found]   ` <mailman.3532.1230620390.26697.help-gnu-emacs@gnu.org>
2008-12-30 14:57     ` Ted Zlatanov
2008-12-29  4:14 reader
2008-12-30 14:34 ` Kevin Rodgers
     [not found] ` <mailman.3568.1230647701.26697.help-gnu-emacs@gnu.org>
2008-12-30 15:02   ` Richard Riley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).