Lightning flashed, thunder crashed and COLLINEAU Franck FTRD/DMI/TAM <franck.co
[EMAIL PROTECTED]> whispered:
| I have a file where there is a line whitch begans by the string "<CENTER>".
| I would like to remove the string "<CENTER>" by nothing.
| How can i do ?
I'm pretty sure a question almost exactly like this was asked and answered
yesterday, the day before that, the day before that, and probably two days
before that. The answer is always going to be some variant of
perl -i.bak -pe 's/^<CENTER>//' filename
This will first create a backup file called filename.bak (-i.bak). This
will loop over the file printing all the lines after they've been worked
with (-pe). If a line starts with <CENTER>, the <CENTER> will be removed.
-spp
--
Stephen P Potter [EMAIL PROTECTED]
"You can't just magically invoke Larry and expect that to prove your point.
Or prove that you have a point." -Simon Cozens
UNIX, Perl, PHP, Web Consulting and Training http://www.unixlabs.net/~spp/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]