From: guy@netapp.com (Guy Harris)
Subject: Re: Portable startup files question..
Date: 1995/05/22 [thread overview]
Message-ID: <3pqsp5$b6o@nova.netapp.com> (raw)
In-Reply-To: 3pqfbf$ds0@elron2.elron.net
Ido Sarig <ido> wrote:
>No they don't. Use `uname -a` and a simple awk script to get the 3rd field
>of the output, which is 4.x on SunOS and 5.x on Solaris.
Use "uname -r" and *no* script, "awk" or otherwise, to get the version
number of the OS, which is 4.x in SunOS 4.x (including 4.1.x, the OS
component of Solaris 1.y) and 5.x in SunOS 5.x (the OS component of
Solaris 2.x). "uname" can be told to print particular values; you're
not obliged to get it to print all its values and use an "awk" or "sed"
or whatever script to select one of them.
next prev parent reply other threads:[~1995-05-22 4:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-05-21 4:00 Portable startup files question Ricardo Marek
1995-05-21 4:00 ` Uwe Leinberger
1995-05-22 4:00 ` Ido Sarig
1995-05-22 4:00 ` Guy Harris [this message]
1995-05-24 4:00 ` Dale DePriest
1995-05-25 4:00 ` Guy Harris
1995-05-26 4:00 ` Thanh Ma
1995-05-26 4:00 ` Guy Harris
1995-06-02 4:00 ` Christopher Samuel
1995-05-21 4:00 ` tim werner
1995-05-22 4:00 ` Guy Harris
1995-05-23 4:00 ` Larry Gale
1995-05-26 4:00 ` Syed Zaeem Hosain
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox