help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to manipulate data like awk or perl when visiting a file


From: Richard Riley
Subject: Re: how to manipulate data like awk or perl when visiting a file
Date: Tue, 30 Dec 2008 16:02:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:

> reader@newsguy.com wrote:
>> 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
>
> Are you familiar with M-| (shell-command-on-region)?

See Xah Lee's excellent pages too:

http://xahlee.org/emacs/emacs_unix.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]