The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 10-10-2007
senthil_is senthil_is is offline
Registered User
  
 

Join Date: Sep 2007
Location: singapore
Posts: 35
String Check in String

Hi,
i need to check my string1 is in another string2.


input_filename=017200910.DC30025
if [ my file has .DC3 ]
then
i need do some action


Can anyone tell me how to check my string is in another string.

example
i need to check .DC3 is in 017200910.DC30025