Re: remove files sensibly

1999-06-15 Thread rp941372
> Hi all: > > How would I enter a command (or write a simple script) that would do: > > FOR EACH FILE *.elc IF THERE IS CORRESPONDING *.el, DELETE IT > > Are there any good online resources about writing similar scripts? I found this web page, under the Unix shells section in Yahoo: http://www

Re: remove files sensibly

1999-06-15 Thread John Pearson
On Mon, Jun 14, 1999 at 11:59:26AM -0400, Arcady Genkin wrote > Hi all: > > How would I enter a command (or write a simple script) that would do: > > FOR EACH FILE *.elc IF THERE IS CORRESPONDING *.el, DELETE IT > > Are there any good online resources about writing similar scripts? > I'm assum

Re: remove files sensibly

1999-06-14 Thread Kirk Hogenson
Arcady Genkin wrote: > > Hi all: > > How would I enter a command (or write a simple script) that would do: > > FOR EACH FILE *.elc IF THERE IS CORRESPONDING *.el, DELETE IT > You could use something like: find . -name '*.elc' -print | sed -e s/\.elc/\.el/ | xargs rm -f ___

Re: remove files sensibly

1999-06-14 Thread Peter S Galbraith
Arcady Genkin wrote: > Hi all: > > How would I enter a command (or write a simple script) that would do: > > FOR EACH FILE *.elc IF THERE IS CORRESPONDING *.el, DELETE IT Delete the .el? I assume you have a backup (or the original .deb)... Save this script as elcheck, `chmod +x elcheck` and ru

remove files sensibly

1999-06-14 Thread Arcady Genkin
Hi all: How would I enter a command (or write a simple script) that would do: FOR EACH FILE *.elc IF THERE IS CORRESPONDING *.el, DELETE IT Are there any good online resources about writing similar scripts? Thanks! -- Arcady Genkin "... without money one gets nothing in this world, not even a