Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String Matching.

Status
Not open for further replies.

ranjank

IS-IT--Management
May 9, 2003
176
IN
Hi All,

I'm writing one script which checks for 1st argument as number or string.Is there any inbuilt function which does string comparison.Any clues on this will be highly appreciated.

Regards,
RK.

 
man test
man expr

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hi All,

In contnuation of the first mail i want ot do the string matching in bash shell.I have one development product abc with lots of version like 1.2,1.3,1.4 etc in pqr directory.Now if i want to call the particular version from another file like...

$./xyz 1.2

How i can match with the version form pqr directory with that of the command line which i had given.

Regards,
RK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top