pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: manuel antonio ochoa <manuel8aalfaro@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Compare the resulta of a count sql into bash
Date: Wed, 26 Jan 2011 23:11:17 -0700
Message-ID: <AANLkTi=SQ+BTiOCT64w0zw-RV18RM4JBKjWwfc3tyCvr@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikw09TZJGa8MMWPb9Rwt1_2Nom2fZjzVB8NhR+G@mail.gmail.com>
References: <AANLkTikw09TZJGa8MMWPb9Rwt1_2Nom2fZjzVB8NhR+G@mail.gmail.com>

On Wed, Jan 26, 2011 at 10:07 AM, manuel antonio ochoa
<manuel8aalfaro@gmail.com> wrote:
>
> 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  ?

echo $((COUNTONE-COUNTTWO));



view thread (4+ messages)  latest in thread

Message-ID: <AANLkTi=SQ+BTiOCT64w0zw-RV18RM4JBKjWwfc3tyCvr@mail.gmail.com>
Permalink:  ../AANLkTi=SQ+BTiOCT64w0zw-RV18RM4JBKjWwfc3tyCvr@mail.gmail.com/
Also on:    postgresql.org/message-id/AANLkTi=SQ+BTiOCT64w0zw-RV18RM4JBKjWwfc3tyCvr@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@gmail.com, manuel8aalfaro@gmail.com
  Subject: Re: Compare the resulta of a count sql into bash
  In-Reply-To: <AANLkTi=SQ+BTiOCT64w0zw-RV18RM4JBKjWwfc3tyCvr@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox