MathGroup Archive 2006

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

Search the Archive

Re:autogenerated packages carriage returns and line feeds

I haven't figured out a way to replicate it with the front end, but in
the process of preparing the file to be included into a web page, this
method can be used:

as part of a makefile:
%.txt : %.m %.nb
        cat $< | tr -d '\r' > $@

on a command line:
cat package.m | tr -d '\r' > package.txt

>Hi Mathgroup,
>Does anyone know of a way to make the MS Windows front end save an
>autogenerated package (.m file from initialization cells in a .nb file)
>with line feeds instead of carriage returns and line feeds? If you do,
>please let me know how.
>Also/alternatively, can someone provide me with a way to save arbitrary
>(ranges of) cells as plain text with the aforementioned line feeds
>instead of carriage returns and line feeds?
>Thank you for your expertise,


  • Prev by Date: Re: Re: unable to FullSimplify
  • Next by Date: A bug in ListPlot3D ?
  • Previous by thread: Cubic Spline Input
  • Next by thread: A bug in ListPlot3D ?