lkml.org 
[lkml]   [1999]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: rmdir of one's pwd (was Re: rmdir of a busy directory)


On Sat, 13 Feb 1999, CaT wrote:

> Matthias Urlichs wrote the following:
> >
> > Ralf Corsepius <corsepiu@faw.uni-ulm.de> writes:
> > >
> > > This fragment relies on rmdir(1) failing when $file contains "."- So the
> > > actual problem is gcc/fixincludes requiring "rmdir $LIB/." to fail (Of
> > > cause this can easily be worked around by modifying fixincludes, but is a
> > > different topic).
> > >
> > So get it fixed. Replacing "find ." with "find *" should work nicely.

find . -mindepth 1
will take care of all hidden files quite nicely.

>
> Unless, ofcourse, you also want to 'find' through any hidden
> files and dirs in that directory, or, that directory is so
> large that it wont fit in any of the buffers it would have to.
>
> (I've had the problem in the past where grep blah * would fail
> cos there were jsut too many files in the current dir)

find . -mindepth 1 -print0 | xargs -0 grep blah


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.041 / U:29.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site