Re: commenting all lines with a particular substring
- From: Tagore <c.lang.myself@xxxxxxxxx>
- Date: Tue, 30 Mar 2010 18:22:43 -0700 (PDT)
Probably sed, awk, perl, or ruby. If you provided more information and some
sample input and expected output, we could probably help you more.
Ed.
I Want to insert "//" at the begining of all lines which have keyword
MY_NAME in all files in all subfolders of a folder.
e.g lines in a file earlier will be
MY_NAME +=10;
a=10;
after running command it would be
//MY_NAME +=10;
a=10;
thanks,
.
- Follow-Ups:
- Re: commenting all lines with a particular substring
- From: Janis Papanagnou
- Re: commenting all lines with a particular substring
- References:
- commenting all lines with a particular substring
- From: Tagore
- Re: commenting all lines with a particular substring
- From: Ed Morton
- commenting all lines with a particular substring
- Prev by Date: Re: commenting all lines with a particular substring
- Next by Date: Re: commenting all lines with a particular substring
- Previous by thread: Re: commenting all lines with a particular substring
- Next by thread: Re: commenting all lines with a particular substring
- Index(es):
Relevant Pages
|