Computing.Net > Forums > OpenVMS > grep for openvms: invalid wildcard operation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

grep for openvms: invalid wildcard operation

Reply to Message Icon

Name: redflyingpig
Date: October 26, 2009 at 22:45:23 Pacific
OS: OpenVMS
Subcategory: Software Problems
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Joseph.Huber
Date: October 27, 2009 at 03:27:06 Pacific
Reply:

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


0

Response Number 2
Name: Joseph.Huber
Date: October 27, 2009 at 08:53:58 Pacific
Reply:

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


0

Response Number 3
Name: redflyingpig
Date: October 27, 2009 at 19:24:18 Pacific
Reply:

Thanks a lot, folks. I was indeed trying to use grep in DCL shell.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: grep for openvms: invalid wildcard operation

grep in openvms www.computing.net/answers/openvms/grep-in-openvms/396.html

C Shell Interpreter for OpenVMS? www.computing.net/answers/openvms/c-shell-interpreter-for-openvms/21.html

TCPware for OpenVMS www.computing.net/answers/openvms/tcpware-for-openvms/258.html