José
thank you, but it lyx2lyx does not do what I need.
lyx2lyx file.lyx -o file.lyx
clobbers file.lyx
Something like
PID=$$
cp file.lyx file.$PID.lyx
lyx2lyx file.$PID.lyx file.lyx
doesn't fit on the command line so needs refinement as a bash script to
take arguments and do further error checking...
not what would call 'one the command line'
el
On 08/08/2017 16:07, José Abílio Matos wrote:
> On Tuesday, 8 August 2017 15.50.28 WEST Dr Eberhard Lisse wrote:
>
>> Hi,
>
>>
>
>> is there a way of changing a lyx file from an older version to the
>
>> current one on the command line, like opening the file, making a
>
>> modification to trigger the saving allowed and saving it under the old
>
>> filename?
>
>>
>
>> find . -name '*lyx' -exec whatever {} \;
>
>>
>
>>
>
>> I wouldn't mind even a Apple Script :-)-O
>
>>
>
>> greetings, el
>
>
>
> I do not use macs, last time I did it was running linux as opposed to
> macos 9. :-)
>
>
>
> In any case the script responsible for converting the lyx files to a
> newer format is called lyx2lyx.
>
>
>
> If you get its path (e.g. here on linux it is
> /usr/share/lyx/lyx2lyx/lyx2lyx) then you can call it directly. It has
> several options for command line call and it even supports compressed
> lyx files directly.
>
>
>
> I can help further if you need.
>
>
>
> Regards,
>
> --
>
> José Abílio
>