public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* grep -r : permission denied
@ 2001-08-09  3:54 Pierre Loic Herve
  2001-08-09  9:03 ` Norbert Fischer
  2001-09-17 10:01 ` Gerrit P. Haase
  0 siblings, 2 replies; 6+ messages in thread
From: Pierre Loic Herve @ 2001-08-09  3:54 UTC (permalink / raw)
  To: Cygwin

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   16 pierlo   544             0 Aug  1 15:11 ./
drwxr-xr-x   13 pierlo   544             0 Jan  1  1970 ../
drwxr-xr-x    2 pierlo   544             0 Aug  6 15:45 .xvpics/
-rw-r--r--    1 pierlo   544        189450 Aug  6 16:20 DX8_Lesson2.zip
drwxr-xr-x    2 pierlo   544             0 Aug  7 14:50 WIN_95/
drwxr-xr-x    2 pierlo   544             0 Aug  1 15:46 WinCvs120/
drwxr-xr-x    2 pierlo   544             0 Aug  7 07:55 atm/
-rw-r--r--    1 pierlo   544         22104 Aug  8 15:05 bottom.jpg
-rw-r--r--    1 pierlo   544          6618 Aug  3 12:00 bufexplorer.vim.htm
drwxr-xr-x    2 pierlo   544             0 Aug  9 08:16 rend_fichiers/
-rw-r--r--    1 pierlo   544         12711 Aug  8 15:05 right
-rw-r--r--    1 pierlo   544         13981 Aug  8 15:10 right2
drwxr-xr-x    2 pierlo   544             0 Aug  3 11:23 savcir/
drwxr-xr-x    2 pierlo   544             0 Aug  3 11:50 temp/
drwxr-xr-x    3 pierlo   544             0 Aug  1 16:12 toto/
drwxr-xr-x    3 pierlo   544             0 Aug  3 10:00 vim/
-rw-r--r--    1 pierlo   544       1297938 Jun 23  2000 vim57rt.zip
-rwxr-xr-x    1 pierlo   544       1259960 Aug  1 15:12 winzip80.exe*
-rwxr-xr-x    1 pierlo   544        159744 Sep  5  2000 xkobo.exe*
-rw-r--r--    1 pierlo   544         48931 Aug  1 15:11 xkobo.zip
-rw-r--r--    1 pierlo   544            72 Aug  1 15:14 xkoboscore
-rw-r--r--    1 pierlo   544       1858745 Aug  6 16:07 zeFINAL.psd

//c/pierre> grep --recursive Texture *
grep: WIN_95: Permission denied
grep: WinCvs120: Permission denied
grep: atm: Permission denied
grep: cyg: Permission denied
grep: dx2d: Permission denied
grep: dxtry: Permission denied
fo.html:To use ID3DXSprite correctly, i suggest that u make or re-edit your
own tile or sprite class. Make them use a Texture instead of a bitmap, then
use ID3DXSprite to draw.
fo.html:LPDIRECT3DTEXTURE8 pSrcTexture, // use your gfx texture
fo.html://Set Sprite Texture
fo.html:About a generic Blit(Texture, X, Y) function - assuming the texture
is a preloaded DX8 texture pointer, the function looks like:
fo.html:Blit(Texture, X, Y)
fo.html:On pixel formats - I think you can use D3DXCreateTextureFromFileEx
and specify a format that works plus a color key value. I haven't tried this
in all possible combinations, but it should work. You can also find out
which formats are supported, and I think A8R8G8B8 is a pretty safe bet and
alpha/ColorKey friendly.
rend.html:      Make them use a Texture instead of a bitmap, then use
ID3DXSprite to
rend.html:      ID3DXSprite<BR>LPDIRECT3DTEXTURE8 pSrcTexture, // use your
gfx
grep: toto: Permission denied
grep: vim: Permission denied

QUESTION why cant grep goto in directories ?

Thanks a lot,
--
Pierre Loic Herve




--
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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: grep -r : permission denied
  2001-08-09  3:54 grep -r : permission denied Pierre Loic Herve
@ 2001-08-09  9:03 ` Norbert Fischer
  2001-09-17 10:01 ` Gerrit P. Haase
  1 sibling, 0 replies; 6+ messages in thread
From: Norbert Fischer @ 2001-08-09  9:03 UTC (permalink / raw)
  To: cygwin

Pierre Loic Herve wrote:

> ... but i still have a little problem :
[...]
> QUESTION why cant grep goto in directories ?

I have the same problem.

CU

-Polaris-

Polaris@Polaris.Franken.de

--
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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: grep -r : permission denied
  2001-08-09  3:54 grep -r : permission denied Pierre Loic Herve
  2001-08-09  9:03 ` Norbert Fischer
@ 2001-09-17 10:01 ` Gerrit P. Haase
  1 sibling, 0 replies; 6+ messages in thread
From: Gerrit P. Haase @ 2001-09-17 10:01 UTC (permalink / raw)
  To: Pierre Loic Herve, Cygwin

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: grep -r : permission denied
       [not found] <3BA6DA61.A4AF16A@home.com>
@ 2001-09-18  4:46 ` Gerrit P. Haase
  0 siblings, 0 replies; 6+ messages in thread
From: Gerrit P. Haase @ 2001-09-18  4:46 UTC (permalink / raw)
  To: CROWLEY CAL; +Cc: cygwin

CROWLEY CAL schrieb am 2001-09-17, 22:23:

>
>"Gerrit P. Haase" wrote:
>
>> 
>> 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 \;
>                 ^^^^^^^^^^^^^
>this will fork/exec for each filename the find generates.
>it is much more efficient to use xargs like this:
>  find . -type f -print | xargs grep $@
>which uses xargs to bundle up as many files as possible
>to pass to grep w/o overflowing the command-line buffer.
>(at least this is so on every UNIX system I have worked
>on in the past 14 years -- hope this is still true with
>Cygwin as well ;-).

Good point.  This works about 100 times faster:)

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: grep -r : permission denied
  2001-08-09  9:30 Noel L Yap
@ 2001-08-09 16:47 ` Norbert Fischer
  0 siblings, 0 replies; 6+ messages in thread
From: Norbert Fischer @ 2001-08-09 16:47 UTC (permalink / raw)
  To: cygwin

yap_noel@jpmorgan.com wrote:

> Or are you trying to grep recursively?

Yes.

CU

-Polaris-

Polaris@Polaris.Franken.de

--
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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: grep -r : permission denied
@ 2001-08-09  9:30 Noel L Yap
  2001-08-09 16:47 ` Norbert Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Noel L Yap @ 2001-08-09  9:30 UTC (permalink / raw)
  To: Polaris; +Cc: cygwin

What do you mean by "go into directories"?  Are you saying that "grep regexp
path/to/file" doesn't work?  Or are you trying to grep recursively?  If the
latter, use:
     find path/to -type f | xargs grep regexp

or:
     grep regexp `find path/to -type f`

Noel

Pierre Loic Herve wrote:

> ... but i still have a little problem :
[...]
> QUESTION why cant grep goto in directories ?

I have the same problem.

CU

-Polaris-

Polaris@Polaris.Franken.de

--
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/





This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.


--
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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-09-18  4:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-09  3:54 grep -r : permission denied Pierre Loic Herve
2001-08-09  9:03 ` Norbert Fischer
2001-09-17 10:01 ` Gerrit P. Haase
2001-08-09  9:30 Noel L Yap
2001-08-09 16:47 ` Norbert Fischer
     [not found] <3BA6DA61.A4AF16A@home.com>
2001-09-18  4:46 ` Gerrit P. Haase

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).