Thread
:
Searching and replacing weird patterns on a file.
View Single Post
#
4
(View Single Post)
2nd December 2008
vermaden
Administrator
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
like that for example:
Code:
% sed -E s/".*php.*include.*http.*SERVER.*HTTP.*HOST.*linkingblogv.*php.*"/NEW/g yourfile
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened."
Linus Torvalds
Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's:
links
resources
deviantart
spreadbsd
vermaden
View Public Profile
Visit vermaden's homepage!
Find all posts by vermaden