View Single Post
  #8   (View Single Post)  
Old 9th March 2009
bforest bforest is offline
Port Guard
 
Join Date: Aug 2008
Location: East Coast, USA
Posts: 32
Default

Thanks again for your efforts to help me...

Quote:
Originally Posted by Carpetsmoker View Post
Just try something like:
# find hippoviewersrc/ -type f -exec sed -e.orig 's|g[+c][+c]4\.1|g[+c][+c]4.2|'

Bit bruteforce ... But it generally works.
Please excuse my ignorance but ... I am not quite sure how to apply your suggestion.

I created a directory and put a copy of the python script into it because that was what I think is giving the error. I assume you are using SED to substitute references to 4.1 in that script to 4.2.

I don't understand the purpose of "-e.orig" option for SED. What command should be executed there?

(The file "develop.py" is attached in a previous post...)
Code:
user@pcbsd# ls
develop.py
user@pcbsd# find ./ -type f -exec sed -e.orig 's|g[+c][+c]4\.1|g[+c][+c]4.2|'
find: -exec: no terminating ";" or "+"
user@pcbsd# find ./ -type f -exec sed -e.orig 's|g[+c][+c]4\.1|g[+c][+c]4.2|';
find: -exec: no terminating ";" or "+"
user@pcbsd# find ./ -type f -exec sed -e.orig 's|g[+c][+c]4\.1|g[+c][+c]4.2|;'
find: -exec: no terminating ";" or "+"

Last edited by bforest; 10th March 2009 at 08:50 AM. Reason: add info...
Reply With Quote