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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-15-2007
murthybptl murthybptl is offline
Registered User
 

Join Date: Nov 2007
Posts: 3
Pattern searching pattern in c files

I have a problem in searching a specific pattern in c files.

My requirement:

I have to find all the division operator in all cfiles.

The problem is, the multi line comments and single line comments will also have forward slash in it.

Even after avoiding these comments also, if both the division operator and the comments come in the same line, we are missing the division operator.

Please provide me the solution...

Give me some suggestions
Reply With Quote
Remove advertisements
!!
Forum Sponsor