AnotherAlan
Technical User
Hi all,
I need to do some substitutions in php pages after changing my web server.
I have written this, which works;
sed 's:\/opt\/SunOne-6.1\/docs:\/usr\/local\/apache2\/htdocs:g' > appdocs.php.test
However, I also have a directory path that starts /app.
My question is - Is it possible to write one sed statement that can substitute for either occurence of app or opt?
Something like sed 's:\/[opt | app]... blah blah. or would I need to use two sed statements?
Thanks
Alan
I need to do some substitutions in php pages after changing my web server.
I have written this, which works;
sed 's:\/opt\/SunOne-6.1\/docs:\/usr\/local\/apache2\/htdocs:g' > appdocs.php.test
However, I also have a directory path that starts /app.
My question is - Is it possible to write one sed statement that can substitute for either occurence of app or opt?
Something like sed 's:\/[opt | app]... blah blah. or would I need to use two sed statements?
Thanks
Alan