I got Time Machine running and am VERY diligent with Unison :-)-O, but of course once can always run ... rm -v ...
But, find ~/ -name '*.lyx' -exec grep -h \\lyxformat {} \; | sort| uniq shows that I have LyX files from 26 different versions lying around :-)-O el On 2016-08-02 16:31, Steve Litt wrote: > On Tue, 2 Aug 2016 15:26:42 +0100 > Dr Eberhard Lisse <nos...@lisse.na> wrote: > >> find ~/ -name '*-lyxformat-*.lyx' -exec rm {] \; > > Danger Will Robinson! > > I personally would never run a one-liner that does deletions. My pencil > has an eraser because I make mistakes. A mistake with such a one liner > could do horrible things. I'd do something like this: > > find ~/ -name '*-lyxformat-*.lyx' > danger.sh > ### Edit danger.sh, prepend each line with "rm " > ### Completely check danger.sh > . ./danger.sh > > My way is sort of like "What you see is what you get." The 1liner way > is more like "You asked for it, you got it." > > Did I mention that I make mistakes. > > SteveT > > Steve Litt > July 2016 featured book: Troubleshooting Techniques > of the Successful Technologist > http://www.troubleshooters.com/techniques >