RESCOMP Archives

January 2007

RESCOMP@LISTSERV.MIAMIOH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Stephen E. Wright" <[log in to unmask]>
Reply To:
Research Computing Support <[log in to unmask]>, Stephen E. Wright
Date:
Tue, 2 Jan 2007 08:52:56 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Hi guys,

Last week I sent Hank Stevens a quick list of sed one-liners to take care 
of his text issues (see below); I also showed him how to set up and call a 
short sed script.  If he needs more, I'm sure he'll get back to you.

Happy new year!

Steve

>Hi folks,
>I need to do some simple repetitive manipulation of a bunch of text
>files: I want to find and replace the exact same strings in several
>files.
>
>Could someone write me a small sample program with instructions for
>how to implement it?
>'
>For instance, I want to find "\begin{Schunk}" and replace it with
>"\begin{verbatim}" and also find "\end{Schunk}" and replace it with
>"\end{Schunk}," and a few other strings as well.
>
>I would also like to delete the first n lines, from line 1, through
>and including the line containing "\begin{document}" (the number of
>lines will vary among files).
>
>My text editor is Aquamacs (a native Mac emacs editor) and I am NOT
>very facile with it, outside of the tasks I do routinely (edit LaTeX,
>R, and Rnw files). I assume a small program could be written to run
>either in unix (upon which my Mac OS sits) or in emacs.
>
>many thanks, and happy holidays,
>Hank

ATOM RSS1 RSS2