delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/17/13:02:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Organization: Esse keine toten Tiere
To: "Pierre Loic Herve" <pierloic AT free DOT fr>, "Cygwin" <cygwin AT cygwin DOT com>
Date: Mon, 17 Sep 2001 16:46:32 +0200
MIME-Version: 1.0
Subject: Re: grep -r : permission denied
Reply-to: gp AT familiehaase DOT de
Message-ID: <3BA628E8.1702.23A45F3A@localhost>
In-reply-to: <011001c120c1$dedeb9c0$a27ba8c0@pierlo>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)
X-Hops: 1
X-Sender: 320081107336-0001 AT t-dialin DOT net

Pierre Loic Herve schrieb am 2001-08-09, 12:55:

>Hi all,
>
>I have installed cygwin 2 weeks ago...and it is just GREAT !!!
>I have rxvt with a background picture ant it is very SEXY !!
>
>... but i still have a little problem :
>
>i have :
>//c/pierre> whoami
>pierlo
>
>//c/pierre> ls -al
>total 8303
[...]
>drwxr-xr-x    3 pierlo   544             0 Aug  1 16:12 toto/
[...]
>//c/pierre> grep --recursive Texture *
[...]
>grep: toto: Permission denied
>grep: vim: Permission denied
>
>QUESTION why cant grep goto in directories ?

I have a little wrapper for recursive greps. Call it 'rgrep' and
save it to /bin. Now you should be able to call:

$ rgrep SaerchTerm

rgrep:
======
#!/usr/bin/sh
# grep $@ recursive
find . -type f -exec grep $@ {} /dev/null \;


Gerrit


-- 
=^..^=

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019