[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: How to match a substring?



Colin Watson wrote:

On Wed, Jan 14, 2004 at 11:59:12AM -0600, Kent West wrote:
I need to run a test in a .bashrc startup script . . .

if {the first word of "uname -a" is Linux}

Why not just use 'uname', which prints Linux on Linux and SunOS on
Solaris?


That solves my problem! Thanks!

In general, try [some other things . . .]


And thanks for this additional information; good stuff to know.

--
Kent



Reply to: