On Sat, 10 Nov 2007, Chris Arnold wrote:- <snip>
So the command i run looks like this; sed -i 's/<HTML><HEAD><TITLE>Net Bible - Genesis </TITLE><LINK REL=Stylesheet HREF="style.css" TYPE="text/css" MEDIA=screen></HEAD><body><p class=title>/<?php require('../../wp-blog-header.php'); ?><?php get_header(); ?><?php include(TEMPLATEPATH."/sidebar1.php");?><div id="main"><div id="content">/g' ./*
and i get this error: sed: -e expression #1, char 99: unknown option to `s'
Try replacing the delimiters with some other character, e.g. '#' sed -i 's#<HTML><HEAD><TITLE>Net Bible - Genesis </TITLE><LINK REL=Stylesheet HREF="style.css" TYPE="text/css" MEDIA=screen></HEAD><body><p class=title>#<?php require('../../wp-blog-header.php'); ?><?php get_header(); ?><?php include(TEMPLATEPATH."/sidebar1.php");?><div id="main"><div id="content">#g' ./* Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys | SUSE 10.1 32bit | openSUSE 10.2 32bit | openSUSE 10.3 32bit SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit | RISC OS 3.11 | RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org