If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > find string in a string

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-05, 04:53
hipolito hipolito is offline
Registered User
 
Join Date: Jun 2004
Posts: 15
find string in a string

Hi,

how can a find a string in another string using cshell?

ie

ABCdONE-VAR

check if it has "ONE" on it, if so do stuff...

thx in advance.
Reply With Quote
  #2 (permalink)  
Old 12-20-05, 09:36
vgersh99 vgersh99 is offline
Registered User
 
Join Date: Apr 2004
Location: Boston, MA
Posts: 325
'man expr'
__________________
vlad
+-----------------------+
| #include <disclaimer.h> |
+-----------------------+
Reply With Quote
  #3 (permalink)  
Old 12-20-05, 12:55
hipolito hipolito is offline
Registered User
 
Join Date: Jun 2004
Posts: 15
I am using Cshell, it does not suport .h files.
Reply With Quote
  #4 (permalink)  
Old 12-20-05, 12:57
hipolito hipolito is offline
Registered User
 
Join Date: Jun 2004
Posts: 15
Nevermind, such an idiot of me, thank you, it works just fine.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On