Re: How do Unix grep, find, sort?

From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 03/01/05


Date: Mon, 28 Feb 2005 21:04:04 -0700


"noleander" <noleander@discussions.microsoft.com> wrote in message
news:980C18A9-0852-4668-8E5C-D113150EE7E9@microsoft.com...
> 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.

Agreed. Of course, using PERL does not preclude one from coding it in a WSH
context!

> Besides, I am using VB inside MS Excell and MS Access for macros
> and event handlers, so I am learning VB.

Correction:

> Besides, I am using VBA inside MS Excell and MS Access for macros
> and event handlers, so I am learning something somewhat akin to VBScript.

/Al

> 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: Object Rexx to become Open Source
    ... > never said that JScript was bad or even not as good a language as VBScript; ... near to open standards, and works seemlessly on Linux with Mozilla as ... PERL does have huge power over VB here. ...
    (microsoft.public.scripting.wsh)
  • Re: Object Rexx to become Open Source
    ... VBScript is less likely to result in overly ... If you call it a beginner's language because beginner's are able to pick it ... as provided by some other scripting languages, I have found it a significant ... Microsoft even use PERL internally. ...
    (microsoft.public.scripting.wsh)
  • Re: Question about Perl and Wscript object
    ... Since you have no prior exposure to Perl, perhaps you could consider taking the advice offered. ... > The VBscript that I have written performs a monitoring function. ... > this script as a service... ...
    (comp.lang.perl.modules)
  • Re: convert Vbscript to Perl code
    ... experience doing VBScript to Perl code conversions it looks like what ... of Windows/DOS only extensions to tie together Perl and the Windows OS ...
    (comp.lang.perl.misc)
  • Re: Type mismatch in If...Then Statement
    ... > VBScript returns TRUE only if the data type is Integer. ... > Valproduces results like PERL, ... > Dim varInteger ...
    (microsoft.public.scripting.vbscript)

Loading