sed version

Hi,

Can anyone help me out in finding the version of sed being used.
any commands to find the version of sed.

sed -V should work..
-V, --version output version information and exit

No Its not working in HP-UX

Check this out:

http://hpux.cs.utah.edu/hppd/hpux/Gnu/sed-4.1.5/man.html

That link describes the functionality of the gnu version of sed. The Porting and Archive Centre has ported a lot of open source software to HP-UX including the gnu sed. But if you have the standard version of sed that comes with HP-UX this link would be more appropriate:
http://docs.hp.com/en/B2355-90690/sed.1.html

Asking which version of sed comes with HP-UX does not make a lot of sense. The version numbers would only be understood by someone deeply familiar with HP-UX. But the command "what /usr/bin/sed" should display them. But the way most HP-UX would proceed is to run "uname -a" as a start. If uname says you are running, say, HP-UX 11.0, then you would have the the HP-UX 11.0 version of sed. So the release of the OS is the first big factor. Next, you might ask which patches have been installed. If you are having trouble with sed, you might go looking for a sed patch. This is where that "what /usr/bin/sed" would come in. HP support might ask you to run that to see if you have the latest version of sed for HP-UX 11.0.

If you are asking if HP-UX has the extended features present in nawk on Solaris, the answer is yes.