[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-admin
Subject:    [HPADM] Scripting (counting number of times something shows up in a var)
From:       Vance_Brasher () dril-quip ! com
Date:       2002-09-25 20:16:03
[Download RAW message or body]

Guys, can anyone think of a way in a korn shell to do the following.

I have a variable called TST. 

TST="/test/test/test"

I need to be able to return the number of / marks in it.  Any ideas on a
quick/easy way to do this?


Regards,


Vance.

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic