I have a text file like this:
Sometext
Somemore
Somemore
maskit
Sometext
Somemore
Somemore
Somemore
maskit
Sometext
Somemore
maskit
I want to search for the string maskit in this file and also need to print
Sometext above it..SOmetext location can vary as you can see above.
In the first insta
Somemore can be anything for instance:
Sometext
mail
maskit
Sometext
rupee
dollar
maskit
and so on..
Is there a way I can achieve this?
On Tuesday, July 2, 2013 2:24:26 PM UTC-5, Neil Cerutti wrote:
> On 2013-07-02, sas4...@gmail.com wrote:
>
> > I have a text file like this:
>
> >
>
> > S
Ok here is a snippet of the text file I have:
config/meal/governor_mode_config.h
#define GOVERNOR_MODE_TASK_RATE SSS_TID_0015MSEC
#define GOVERNOR_MODE_WORK_MODE_MASK(CEAL_MODE_WORK_MASK_GEAR| \
CEAL_MODE_WORK_MASK_PARK_BRAKE | \