Go Back   The UNIX and Linux Forums > Operating Systems > Solaris


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-20-2012
Registered User
 
Join Date: May 2011
Posts: 142
Thanks: 27
Thanked 22 Times in 22 Posts
Solaris limitations

Hi,

I recently started working with Solaris, and what I noticed is that a lot of commands I used to regularly use don't work, like sed -i and grep -r. I have found work arounds for these problems though but it's a pain in the ass.
I'm just wondering why they decided not to include these handy commands?
Sponsored Links
    #2  
Old 07-20-2012
Registered User
 
Join Date: Jul 2012
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Solaris limitations

Quote:
Originally Posted by Subbeh View Post
Hi,

I recently started working with Solaris, and what I noticed is that a lot of commands I used to regularly use don't work, like sed -i and grep -r. I have found work arounds for these problems though but it's a pain in the ass.
I'm just wondering why they decided not to include these handy commands?
Each UNIX variant has commands that are unique to it, as well as many commands that work the same way that they do on other UNIX systems. Which variant were you working with before you started to use Solaris?
Sponsored Links
    #3  
Old 07-20-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Location: Zürich
Posts: 6,935
Thanks: 218
Thanked 759 Times in 663 Posts
Those options are from GNU/Linux. Solaris isn't GNU.

It does have some GNU commands, though, in /usr/sfw/bin, including a ggrep which has a -r option. There is no "gsed" version, although I'm sure you could probably find one. Not that -i is a particularly sophisticated option!
    #4  
Old 07-20-2012
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Location: Paris
Posts: 4,145
Thanks: 14
Thanked 401 Times in 369 Posts
Quote:
Originally Posted by Subbeh View Post
I'm just wondering why they decided not to include these handy commands?
That's the other way around. Gnu decided to add custom extensions to most of the standard Unix commands.
Solaris default commands are on the other hand much closer the the POSIX standard, you can even run strictly compliant alternatives should you need to in /usr/xpg|46]/bin.

Note that starting with Solaris 11, most of the Gnu commands are bundled with the OS in /usr/gnu/bin and the standard ones in /usr/bin are gradually including some of the previously Gnu only extensions.
Sponsored Links
    #5  
Old 07-20-2012
Registered User
 
Join Date: May 2011
Posts: 142
Thanks: 27
Thanked 22 Times in 22 Posts
Thanks for clearing that up! I worked with Debian and Red Hat before, I guess both use GNU.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Limitations of tac/cat? 127.0.0.1 Shell Programming and Scripting 6 10-06-2010 03:26 PM
Solaris 9 or 10 LUN Limitations BG_JrAdmin Solaris 6 06-11-2008 04:43 AM
Password limitations. syndex UNIX for Dummies Questions & Answers 2 07-25-2007 09:51 PM
need help with 32 bit IP address limitations 30177005 IP Networking 1 05-19-2004 07:18 PM
Size limitations with ufs/disk suite on Solaris 8? 98_1LE UNIX for Dummies Questions & Answers 3 09-18-2002 10:27 AM



All times are GMT -4. The time now is 11:43 AM.