how to change a certain line in a file, using SED ?
- From: opensuse2009@xxxxxxxxx
- Date: Thu, 11 Dec 2008 18:34:34 -0800 (PST)
I have a test file that is about 5000 lines long. There are about 30
different lines in this file where each line looks exactly like this:
CODE = 1234
I would like to use a UNIX command (maybe something like sed) to
replace that line mentioned above, that is found on exactly line
number 575 of that file, to something like this:
CODE = 5678
Keep in mind. I don't want to change ALL of the lines with the string
"CODE = 1234" to "CODE = 5678". I just want to do this on line 575 of
that file.
Does anyone know how I can do this in UNIX shell? Thanks.
.
- Follow-Ups:
- Re: how to change a certain line in a file, using SED ?
- From: Bill Marcum
- Re: how to change a certain line in a file, using SED ?
- From: Janis Papanagnou
- Re: how to change a certain line in a file, using SED ?
- Prev by Date: if: Expression syntax help in C shell
- Next by Date: Re: how to change a certain line in a file, using SED ?
- Previous by thread: if: Expression syntax help in C shell
- Next by thread: Re: how to change a certain line in a file, using SED ?
- Index(es):
Relevant Pages
|