Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

grep in windows

by chorg (Monk)
on Oct 24, 2001 at 00:31 UTC ( [id://120897]=perlquestion: print w/replies, xml ) Need Help??

chorg has asked for the wisdom of the Perl Monks concerning the following question:

Ok, I'm using activestate perl, and I am not a normal windows user... does anyone know how I can get tcgrep to work under windows?
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

Replies are listed 'Best First'.
(tye)Re: grep in windows
by tye (Sage) on Oct 24, 2001 at 01:08 UTC

    For those of you who don't know what "tcgrep" is, might I suggest tcgrep? One copy of source code can be found here.

    So, what version are you using and what errors are you having? "tcgrep" was first written using Perl4 so I'm not surprised if there are "issues" with it. But I'm not going to go grab a copy that might not be the same copy that you are using just to see if I can experience the same problems that you are keeping a secret. (:

            - tye (but my friends call me "Tye")

      Actually, a better place to find out about tcgrep is PPT: The Unix Reconstruction Project, which is (was?) an attempt to create pure-Perl implementations of classic UNIX tools.

          --k.


Re: grep in windows
by blackmateria (Chaplain) on Oct 24, 2001 at 00:48 UTC
    Hmm... And what exactly is a "normal" Windows user?

    Anyway, I'm not familiar with "tcgrep" (is it the grep from Turbo C++?). If you can install it, Cygwin has straight ports of the Unix grep, egrep, fgrep, etc. (as well as another version of Perl that's IMHO better than ActiveState's for a lot of tasks). Cygwin's tools (they have a fairly complete port of the GNU tools to Win32) are great, I use them all the time. Hope this helps!

    Update: Aha! tcgrep = Tom Christiansen's version of grep, written in perl. (/me bows head in shame for being too lazy to do a google search before posting the first time.) Thanks tye.

      I tend to the Unices... I am using windows to do a project right now. Of course I have to apologize... My problem is not with perl -- it's with the command line in windows, or lack thereof. Cygwin should do it... sorry about the time taken. thanks for the replies though
      _______________________________________________
      "Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."
Re: grep in windows
by TGI (Parson) on Oct 24, 2001 at 01:28 UTC

    Please post a description of the problem you are having.

    You may want to try the Perl Power Tools grep.


    TGI says moo

Re: grep in windows
by CubicSpline (Friar) on Oct 24, 2001 at 00:47 UTC
    I'm not sure what "tcgrep" is, however WindowsNT (unsure about other versions) has the "findstr" command that acts, more or less, exactly like grep. Perhaps it can help you out?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://120897]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found