On Fri, Jul 02, 1999 at 11:34:02AM -0400, Amir Karger wrote:
>
> Wow! I'm impressed. Either it's much easier to go from lyx to latex than
> vice versa (because lyx was designed that way) or you're a much better
> programmer than I am.
>
> By the way, for safety,
> s/.lyx//g
> (in main) should probably be
> s/\.lyx//g
>
> to avoid messing up "my_lyx_doc.lyx". while we're at it, why do you need the
> g? Also, you might want to warn if the .tex file exists already (or require
> -f to overwrite.)
Changing it to the second form would still mess up "my.lyx.doc.lyx".
I know, it's a silly name... But in any case, maybe doing
s/\.lyx$//
would be better.
---Kayvan
--
Kayvan Aghaiepour Sylvan | Proud husband of | Father to my kids:
Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | | Robin Gregory (2/28/92)