> 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
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
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
___
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
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
5 matches
Mail list logo