Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

replace text: Not knowing the line number

2 views
Skip to first unread message

Nagrik

unread,
Sep 12, 2010, 3:23:22 PM9/12/10
to
Hello Group,

I have a file named myfile

it has a line starting with

#% Some text

I don't know the line number of this line and at one time I want to
replace it to

% Some text

and later back to

#% Some text

Can somebody please tell me a way to do it in sed. I am a beginner
for sed. I will greatly appreciate this help.

Thank you very much.

nagrik.

0 new messages