RE: How do Unix grep, find, sort?

From: noleander (noleander_at_discussions.microsoft.com)
Date: 02/28/05


Date: Sun, 27 Feb 2005 16:43:04 -0800

HI again. I wrote the original post. After 2 days of searching, and
reading the replies above (thanks all!) I've settled on Perl. It works fine
on PC and includes (more or less) awk, find, grep, csh, etc.

I did spend some time looking into "Unix on PC" tools, but none worked well.
 Here are the ones I tried:

 Unxkit = small; immature;
 CygWin = way too huge; interpreted
 WinXs = incomplete; too small
 SFU = will not work on XP-Home (requires XP-Pro) :-(

Anyway, Perl seems to meet my needs. It is free, small-ish, and performs
just about any function a Unix relic would need.

I understand that by using Perl I will not learn VBscript well, but a tool
is a tool. Besides, I am using VB inside MS Excell and MS Access for macros
and event handlers, so I am learning VB.

Thanks again for the help.
  neal

"noleander" wrote:

> Hi. I'm new to Windows, after programming for 20 years in Unix. I'm willing
> to give Windows a fair shot, but I'm having a heck of a time getting started.
> Here is a typical thing I'll need to do:
>
> *** Find all text files that are less than one month old (under a given
> folder) and within those files replace all occurances of string "xyz" with
> string "abc".
>
> I'm used to the Unix approach, piping commands like grep, find, and ex
> together.
>
> But I've been studying VBScript all day, and I swear I cannot figure out how
> to do the above task.
>
> My question is: What is the normal scripting approach in Windows to
> accomplish the task I describe above? Pointers to sample code would be much
> appreciated!
>
> neal
>



Relevant Pages

  • Re: Unix commands
    ... I don't recall ever writing a program that needed to trawl through ... All the Perl programs ... I'm not going to worry whether my tool is going to be run on Windows. ... // Actually many times I've ported my programs and tools to Unix too! ...
    (comp.lang.perl.misc)
  • Re: Unix commands
    ... ==> writing the program in Perl, ... ==> program that had to be ported to Windows. ... After installing a Unix toolkit the script ... And every other common Unix tool. ...
    (comp.lang.perl.misc)
  • Re: replacing two EOL chars by one
    ... Now there are a slew of perl driviling morons who ... PS pasted below my sig is some meat about unix. ... Subject: unix inanity: shell env syntax ... some command accept the -v for ...
    (comp.lang.perl.misc)
  • Re: replacing two EOL chars by one
    ... Now there are a slew of perl driviling morons who ... PS pasted below my sig is some meat about unix. ... Subject: unix inanity: shell env syntax ... some command accept the -v for ...
    (comp.lang.python)
  • Re: replacing two EOL chars by one
    ... Now there are a slew of perl driviling morons who ... PS pasted below my sig is some meat about unix. ... Subject: unix inanity: shell env syntax ... some command accept the -v for ...
    (comp.lang.lisp)

Loading