Re: recursive directory

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

 



On Fri, May 13, 2005 at 08:11:45PM -0700, Lokrin wrote:
> I just checked.  No, they are not the same inode.  I think some program 
> got out of hand and just kept making them.

In that case you want a recursive delete that's not depth-first, eg

    #!/bin/sh
    while [ -d foo/foo ]; do mv foo/foo foo-; rmdir foo; mv foo- foo; done


-- 
"The GPL violates the U.S. Constitution, together with copyright,
antitrust and export control laws"
    -- SCO smoking crack again.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux