[OS X TeX] Re: Save date-time, not Print date

Victor Ivrii vivrii at gmail.com
Sun Jan 7 05:48:56 CET 2007


On 1/7/07, Alain Schremmer <Schremmer.Alain at gmail.com> wrote:
> Victor Ivrii wrote:
>
> > On 1/6/07, Alain Schremmer <Schremmer.Alain at gmail.com> wrote:
> >
> >> Victor Ivrii wrote:
> >>
> >
> >> >
> >> > I am not sure why one needs to know the date when foo.tex was modified
> >> > (and actually this is given by either UNIX ls -l or just Mac OS info)


Well, the above lines provided some clues; let me put the meat on the bones:

\documentclass[12pt]{article}

\newcommand\file{foo}

\begin{document}

Test

\immediate\write18{ls -l \file.tex | cut -b33-45 > \file.date}
\input\file.date

\end{document}








-- 
========================
Victor Ivrii, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/




More information about the macostex-archives mailing list