tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: dthun () dwp ! ci ! la ! ca ! us
To: tru64-unix-managers
Subject: Summary Korn Shell Help
Date: Wed, 03 Jun 1998 21:47:11 +0000	[thread overview]
Message-ID: <96078712011432.tru64-unix-managers.marc@archive.invalid> (raw)


Many thanks to all that helped.

Nestor Ruiz
Hugh Pritchard
Gene Vannostern
Kurt Carlson
Mark Allen
Angel Martinez

---------------------------------------------------------------------------
---------------
Here's my summarized post.


I'm trying to compare a string to which has the contents of a full path: ie
 ie. current_tree  which would have something like
 /usr/users/mktowns/script/
 and match it with /usr/users/mktowns.

 something like ...
---------------------------------------------------------------------------
----------------

Hugh Pritchard had the eaisest solution for me. (and it works great)

if [[ $current_tree = /usr/users/mktowns/* ]]; then

Use [[ ... ]] (done in the shell) instead of [ ... ] (runs the test
program).


Also suggested the following Korn Shell book.


Learn how to use Korn shell patterns.

Read Bolsky & Korn's _The_New_Kornshell_.

                 reply	other threads:[~1998-06-03 21:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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