[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Not sure if bug or windows problem
From: |
Jürgen Kahrs |
Subject: |
Re: Not sure if bug or windows problem |
Date: |
Wed, 31 May 2006 20:21:04 +0200 |
User-agent: |
Thunderbird 1.5 (X11/20060317) |
address@hidden wrote:
> I´m having problems trying to use this command(from a working linux script)
> in gawk for windows (the entire comand is more complex but i´ve reduced it
> for the example):
>
> more mirror.txt | tr -d " " | gawk -F: " $1 == "ImageUID" {print
> $0}"
>
> I´m trying to get the compare with "==" to find and print the line in
> cuestion......................
This is a quoting problem. Do it like this:
tr -d " " < mirror.txt | gawk -F: '$1 == "ImageUID" {print $0}'
You can replace the tr command with gawk's gsub.