Hi,
 you can use the following command to get only the version number.

psql --version|head -1|cut -f3 -d' '


---
নির্মাল্য লাহিড়ী [Nirmalya Lahiri]
+৯১-৯৪৩৩১১৩৫৩৬ [+91-9433113536]



--- On Sat, 2/5/11, ராஜ பாண்டி <[email protected]> wrote:

> From: ராஜ பாண்டி <[email protected]>
> Subject: [Ilugc] Finding Postgresql version number
> To: "ILUGC" <[email protected]>
> Date: Saturday, February 5, 2011, 1:26 PM
> Hi friends,
> 
>     I want to get the version number of
> postgresql installed in a system.
> "psql --version" serves the purpose, but it prints the
> version number with
> some text information also. I want only the version number.
> Is there any way
> to get only the version number or i have to process the
> "psql --version"
> output ?
> 
> -- 
> with regards
> Raja Pandi
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
> 


      
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to