On 1/23/07, Ananth Shrinivas <Ananth.Shrinivas at sun.com> wrote:
>
> >     If you are looking for only maxdepth = 1 then will "ls -l" not do
> the
> >     job (with awk/sed/grep) ?
> >
> >     For arbitrary depths, there ain't no mystery option. You need perl
> or
> >     python to do that job :(
> >
> >     Ananth
> >
> >
> > No!! this is bad.  I need to use find as I'll be mixing it with the
> > -newer option
>
> Maybe this helps ?
>
> find /DIR/. \( -type d \! -name . -prune \) -o -type f -print
>
> Standard Hack. The "." needs to be there after the DIR.


Yes :)

This seems to do it (the only nag is the /./ in the output but that shouldnt
be a problem)

-maxdepth seems to be a very usable option. Wonder why it isnt added to the
find.

Regards
Anil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/ug-bosug/attachments/20070123/b5dcba27/attachment.html>

Reply via email to