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.
Uwe Feuerstein — — source: Informix-list mailing list archive (1991-1998)
Hi josephatlanta,
another way is to send the output into an extra file using the prefix
output to <file> without heading select ... from ...
and than work with this temporary datafile
Hope this helps
Uwe
josephatlanta@my-dejanews.com wrote:
> Is there a SQL statement that can give me the output of the switches without
> the "switch_id" and/or the "14 row(s) retreived." text?
>
> There may be any amount of switches, and I either need to write the shell
> script to parse the extra text out, or get the SQL statement to omit it.
>
> Thanks for your help!
>
> ================================================
> response=`
> {
> dbaccess ${dbname} - <<EOF
> select switch_id from switches where switch_id4 = "M1"> EOF
> } 2>&1 `
>
> echo $response
>
> #switch_id RIM 2JY 2JV CLX 2OR ASC AU1 AUP BCS AUA AUO BOY BHW 2M8 14 row(s)
> retrieved.
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
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.