MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: Scriptable Mathematica tools for auto-editing text?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48547] Re: [mg48497] Re: Scriptable Mathematica tools for auto-editing text?
  • From: Yasvir Tesiram <tesiramy at omrf.ouhsc.edu>
  • Date: Fri, 4 Jun 2004 04:51:09 -0400 (EDT)
  • References: <200406020822.EAA15580@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

G'day,
I am still not quite sure exactly what you want here. A package that
allows text editing of documents (perhaps in batch mode) such as html
code, C code, java etc??
I don't think there is a utility of this sort out there specifically
written in Mathematica. But the tools for editing almost any type of file
are already there in Mathematica.
Would you intend to run it from within Mathematica via a notebook
interface, via the command line, or as a standalone program? I think that
all of these are possible. Alternatively, for Mac at least, you may be
able to combine Mathematica and BBEdit via MathLink for AppleScript.
There is also MASH by Daniel Reeves
(http://ai.eecs.umich.edu/people/dreeves/mash) which provides direct
access to the Mathematica kernel from the command line.

Cheers
Yas

PS. I hope this makes it to you Bill Rowe. I subtracted what looked like
one hundred and four.

On Wed, 2 Jun 2004, Bill Rowe wrote:

> On 6/1/04 at 3:02 AM, siegman at stanford.edu (AES/newspost) wrote:
>
> >Anyone know of a Mathematica package or set of tools that can be
> >used to operate on a text file and do, scriptably, the kinds of
> >things one could do by hand using one of the more powerful text
> >editors, like BBEdit, emacs or QUED/M? -- a set of modules that
> >would do Search and Replace with some grep capabilities, pull out
> >all the links in an HTML document, and so on.
>
> >I'm sure I cobble up an amateur effort myself to do this, but has
> >someone else already done it better?
>
> You mention both BBEdit and emacs. That indicates you are using Mac OS X. If so, couldn't you do what you want by using the Mathematica command Run to access the Unix utilities, grep, sed etc?
> --
> To reply via email subtract one hundred and four
>


  • Prev by Date: Re: Fourier analysis with additional coefficient for the R-matirx
  • Next by Date: Re: Help Browser
  • Previous by thread: Re: Scriptable Mathematica tools for auto-editing text?
  • Next by thread: Re: Scriptable Mathematica tools for auto-editing text?