Re: [ADMIN] [HACKERS] grep command

2007-10-29 Thread Medi Montaseri
Or ... ask the application not the OS psql> select version() ; Cheers Medi On 10/29/07, Andrew Dunstan <[EMAIL PROTECTED]> wrote: > > > Leaving aside the question of why one might want to do this, Unix 101 > should show you many ways to do it. For example, > > sed -n -e 's/.*PG_VERSION /PG

Re: [HACKERS] grep command

2007-10-29 Thread Andrew Dunstan
Leaving aside the question of why one might want to do this, Unix 101 should show you many ways to do it. For example, sed -n -e 's/.*PG_VERSION /PG_VERSION /p' -e /PG_VERSION/q config.log Please don't cross-post questions like this, especially when it's not really a PostgreSQL question at a

[HACKERS] grep command

2007-10-29 Thread Kuriakose, Cinu Cheriyamoozhiyil
Hi All, I am giving the command cat config.log|grep -w 'PG_VERSION' Which gives the following Output: | #define PG_VERSION "8.3beta2" | #define PG_VERSION "8.3beta2" | #define PG_VERSION "8.3beta2" | #define PG_VERSION "8.3beta2" | #define PG_VERSION "8.3beta2" | #define PG_VERSION "8.3beta2