lkml.org 
[lkml]   [1999]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: rmdir of one's pwd (was Re: rmdir of a busy directory)
Date
  Alexander Viro <viro@math.psu.edu> writes:
>
> find . -mindepth 1
> will take care of all hidden files quite nicely.
>
Except for machines which have "find" commands which don't understand
-mindepth, which is exactly the kind of machine you need fixincludes for.

A solution which works everywhere would be a pipe through "sed -e 's/^\.$/d'".

> > Unless, ofcourse, you also want to 'find' through any hidden
> > files and dirs in that directory, or, that directory is so

Not likely for include files.

> > large that it wont fit in any of the buffers it would have to.
> >
I haven't seen any machine where /usr/include was _that_ full, but I
suppose it's possible.

> find . -mindepth 1 -print0 | xargs -0 grep blah
>
Ditto about not understanding. :-/

--
Matthias Urlichs | noris network GmbH | smurf@noris.de | ICQ: 20193661
The quote was selected randomly. Really. | http://www.noris.de/~smurf/
--
"I can repeat poetry as well as other folk if it comes to that--"
"Oh, it needn't come to that!" Alice hastily said.
-- Lewis Carroll

-
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.090 / U:2.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site