The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX version masquerer AIX 4 05-10-2008 06:34 PM
TAR version help!!! marlonus999 UNIX for Advanced & Expert Users 2 03-27-2007 10:18 AM
VERSIOn huhuloa UNIX for Dummies Questions & Answers 1 09-26-2005 03:06 AM
ssh version csaunders SUN Solaris 2 06-15-2005 12:49 PM
what version kymberm Linux 1 12-16-2003 10:12 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-07-2007
Registered User
 

Join Date: Jan 2007
Posts: 10
sed version

Hi,

Can anyone help me out in finding the version of sed being used.
any commands to find the version of sed.
Reply With Quote
Forum Sponsor
  #2  
Old 05-07-2007
dj -------
 

Join Date: Feb 2007
Location: Cochin/Bangalore, India
Posts: 435
sed -V should work..
-V, --version output version information and exit
Reply With Quote
  #3  
Old 05-07-2007
Registered User
 

Join Date: Jan 2007
Posts: 10
Re:sed version

No Its not working in HP-UX
Reply With Quote
  #4  
Old 05-07-2007
dj -------
 

Join Date: Feb 2007
Location: Cochin/Bangalore, India
Posts: 435
Quote:
Originally Posted by tinivt
No Its not working in HP-UX
Check this out:

http://hpux.cs.utah.edu/hppd/hpux/Gn...4.1.5/man.html
Reply With Quote
  #5  
Old 05-07-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,654
Quote:
Originally Posted by jacoden

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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0