Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 54A451337BCD for ; Wed, 26 Jan 2011 13:07:29 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 07602-08 for ; Wed, 26 Jan 2011 17:07:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f46.google.com (mail-ew0-f46.google.com [209.85.215.46]) by mail.postgresql.org (Postfix) with ESMTP id 85FBF1337B9C for ; Wed, 26 Jan 2011 13:07:21 -0400 (AST) Received: by ewy5 with SMTP id 5so299561ewy.19 for ; Wed, 26 Jan 2011 09:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=GL+dJOZP08I0+Mk48DDHB4nqwz9DgKYGX186zc1w6nA=; b=oSCRo3IeifSHBnRK6nrrrooKKL+8l1dPa0ijvZjedRPyflS+SZ4JtjL75/gl+TAptr empje15LCtpLLDY6jnx5R3v4LFG48sRrWMZiwM34/YMCOhfJlqsziZlq1kVGts+Opoxn bVmbf/Tc5/pqSc8B6ONpihOnEQ39Q/8iN4/+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jnbZCjKjZ/Sj6QKqMmq+IDAJ/Hgh0wc4FJ1b5d3JDf05pvbPLaKXKw0HE889re5iFq cct0zoLI/11pNkb5exZKaRwzIebf5pCg0VEjUX/+vGMfX18XCGocwKXHpbsdHsPQ+RB6 joJgVE2TQx+FLKC90kGtCuhrsCJisrwCDpG/I= MIME-Version: 1.0 Received: by 10.213.105.74 with SMTP id s10mr1580226ebo.48.1296061625708; Wed, 26 Jan 2011 09:07:05 -0800 (PST) Received: by 10.213.28.199 with HTTP; Wed, 26 Jan 2011 09:07:05 -0800 (PST) Date: Wed, 26 Jan 2011 11:07:05 -0600 Message-ID: Subject: Compare the resulta of a count sql into bash From: manuel antonio ochoa To: pgsql-sql@postgresql.org Content-Type: multipart/alternative; boundary=0015174be152ceb275049ac2dc95 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.588 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201101/94 X-Sequence-Number: 35041 --0015174be152ceb275049ac2dc95 Content-Type: text/plain; charset=ISO-8859-1 Hello, I have the next : COUNTONE=`/var/lib/pgsql/bin/./psql -U 'Thor' -d princlocal -p 5432 -h 192.170.1.82 -c "select count(*) from monterrey.${NOMBRETB}"` COUNTTWO=`/var/lib/pgsql/bin/./psql -U 'Thor' -dprinclocal -p 5432 -h 192.170.1.82 -c "select count(*) from monterrey.$nombre where recibo between '$FI' and '$FF'" I want to compare the result countone with countwo how does it works ? thnks --0015174be152ceb275049ac2dc95 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,
I have the next :

COUNTONE=3D`/var/lib/pgsql/bin/./psq= l -U 'Thor'=A0=A0 -d princlocal -p 5432 -h 192.170.1.82=A0 -c "= ;select count(*) from monterrey.${NOMBRETB}"`
COUNTTWO=3D`/var/lib/= pgsql/bin/./psql -U 'Thor'=A0=A0 -dprinclocal -p 5432 -h 192.170.1.= 82=A0 -c "select count(*) from monterrey.$nombre where recibo between = '$FI' and '$FF'"

I want to compare the result countone with countwo=A0 how does it works= =A0 ?



thnks



--0015174be152ceb275049ac2dc95--