Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Steve Romankiw — — source: Informix-list mailing list archive (1991-1998)
Cheryl:
You could try this:
------------------
#!/bin/ksh
data="1|2|3|4||6|7"
echo ${data} |
nawk 'BEGIN {FS="|"}
$5 !~ /^$/ {
print $0
}
'
------------------
Steve Romankiw
"Kemp, Cheryl" wrote:
> To all,
> How do you print a record from a unload file only if the 5th field has a
> value? I'm looking in a Korn shell book and can't seem to fine the example I
> need.
>
> TIA
> Cheryl
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.