Re: an off topic question
From: Lew Pitcher (Lew.Pitcher_at_td.com)
Date: 10/30/03
- Next message: Chuck: "killing child processes"
- Previous message: William Park: "Re: insert empty lines with sed (shell script)"
- In reply to: Darren: "an off topic question"
- Next in thread: Alan Connor: "Re: an off topic question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 20:24:59 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.
This isn't very clear.
Do you mean that you want
a) the results of "grep NOTE *.txt" to be replaced by the value of $var?
(that's the way your description reads to me)
b) $var to contain, as it's value, the string "grep NOTE *.txt"?, or
c) $var to contain, as it's value, the results of "grep NOTE *.txt"?
If you mean (a), then I can't help you
If you mean (b), then
var="grep NOTE *.txt"
will do it
If you mean (c), then
var=`grep NOTE *.txt`
will do it
If you mean something else, please explain.
[snip]
-- Lew Pitcher IT Consultant, Enterprise Technology Solutions Toronto Dominion Bank Financial Group (Opinions expressed are my own, not my employers')
- Next message: Chuck: "killing child processes"
- Previous message: William Park: "Re: insert empty lines with sed (shell script)"
- In reply to: Darren: "an off topic question"
- Next in thread: Alan Connor: "Re: an off topic question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|