Re: an off topic question
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 10/30/03
- Next message: laura fairhead: "Re: Replacing lines in a file"
- Previous message: Chuck: "killing child processes"
- In reply to: Darren: "an off topic question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 20:59:04 GMT
On Thu, 30 Oct 2003 20:10:43 -0000, Darren <foo.bar@world.com> wrote:
>
>
> Hi,
>
> VERY sorry to post here....
>
> but i am writing a batch file in windows using cygwin's grep, and need to
> know who to do:
>
> set var = grep NOTE *.txt
>
> in other words the VALUE of grep NOTE *.txt to be equal to the variable var.
>
> just in DOS this doesnt work!!
>
> ANY suggestions welcome (not TOOO rude pls)
>
> THANKS.....
>
> Darren
>
>
>
>
Don't know about DOS, but with an sh-compatible shell you would do:
var=`grep NOTE *.txt`
For a POSIX compliant shell it could be:
var=$(.....)
--
Alan C this post ends with w
q
- Next message: laura fairhead: "Re: Replacing lines in a file"
- Previous message: Chuck: "killing child processes"
- In reply to: Darren: "an off topic question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|