Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I'm trying to use the gnv package under VMS, but this command
grep int *.c
gives me this error: *.c: invalid wildcard operation
Can anybody see what the problem is?
Thanks in advance.

Which GNV version , which grep version (show "grep --help").
On my system it happily accepts wildcards.I have the impression You are using grep from DCL, not in the GNV bash shell:
grep does not handle wildcards, the shell (bash) does it.Joseph Huber, http://www.huber-joseph.de
ITRC

If You want a grep working with wildcards from DCL (i.e. expanding the wildcard filespec itself), then there is a rather old VMS implementation of grep 2.0 from Hunter Goatley at
http://vms.process.com/scripts/file...
as well as fgrep.Otherwise to use GNVs grep, define a symbol like
grep == "bash -c ""grep"
if you have a "bash" command or have gnu:[bin] in Your dcl$path.Joseph Huber, http://www.huber-joseph.de
ITRC

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |