Re: How do Unix grep, find, sort?

From: Roger Abell (mvpNOSpam_at_asu.edu)
Date: 03/01/05


Date: Mon, 28 Feb 2005 23:05:35 -0700


> SFU = will not work on XP-Home (requires XP-Pro) :-(
That blows !!

Good luck

-- 
Roger
"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.  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: Perl versus other scripting language
    ... I don't see this as a disadvantage. ... but there are more perl modules that don't work at all under ... Windows, or that work badly, or which work with a version of perl but don't ... Unix manpages (a lovely thing if you work under Windows with no ...
    (perl.beginners)
  • Re: How does perl know its environment.
    ... >>It doesn't have paths built into the binary and it doesn't use the ... In Windows, I just let it find the lib ... I don't have Unix, so I don't know if it's true there or not. ... A perl program may get misleading info as to the path of the ...
    (comp.lang.perl.misc)
  • Re: What is the more popular UNIX flavor?
    ... about my experience with Solaris and Cygwin. ... installing packages. ... needing eg tftp you only need to activate on a Unix system. ... probably need installing first on the equivalent Windows system. ...
    (comp.unix.questions)