John Roberson wrote:Any ideas as to what I'm doing wrong?
Fortunately, yes. :-)
John Roberson wrote:I tried this
find /hsphere/local/home/dennisch/ -name "*.php" -exec sed -i "/<?68c8c7#/,/68c8c7#?>/d" '{}' \;
The problem is that the shell sees your characters within the "" and the < and > characters are special to the shell (used to redirect input and output respectively). Replace all the "" in your command line with ' and
you should be fine.
Personally, I don't like the -i option. I would like to see the results of sed written out to a different file, and maybe have the option of going back to the original version of the file (the version before sed modified it) -- YMMV.
- Anand
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery