Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] everlasting directory



>>>>> "DK" == Dmytro Koval'ov <kov@example.com> writes:

>>>>> On Thu, 11 Jul 2002, "Mauro" == Mauro Sauco wrote:


    Mauro> In one-line :)

    DK> Nope. In script you go to the bottom of directories, them step one 
    DK> level up and remove. Quite different from:

    Mauro> find . -inum idex -exec rm -rf {}
    DK>                                   ~~~~~~~~
    DK> Sure this won't work. {} will give command line too long... 

Then find . -name idex | xargs rm -f

By the way, on my system (rh 7.3) arg list becomes too long when it
reaches 23544 !

$ rm -f `perl -e 'print join " ", (0..23542)'`
$ rm -f `perl -e 'print join " ", (0..23543)'`
bash: /bin/rm: Argument list too long

Viktor


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links