Dear Thiago,
I've tested version2 and it's still failed.
I noticed that in the script file "I-beat.sh", the original sed -i is replaced with sed -i''. For Mac OS sed:
- For the error: sed: 1: "auxiliary_script_for_sed": command a expects \ followed by text : sed -i should be replaced with sed -i '' (notice the space)
- For the error: sed: illegal option -- r: sed -r should be replace with sed -E . BUT then I get another error: invalid command code C, and I don't know how to fix it.
Finally, I can NOT correctly run the script under Mac OS.
Instead, I install gnu-sed by homebrew and temporarily replace the Mac sed: brew install gnu-sed && cd /usr/bin && sudo mv sed sed.bak && sudo ln -s /usr/local/bin/gsed ./
Now I can run the version1 correctly, and easily change back to Mac sed by : cd /usr/bin && sudo mv sed gsed && sudo mv sed.bak sed
Thanks very much for your cellulose-builder, its ability of automation have saved much more time and effort.
在 2013年9月13日星期五UTC+8上午4时03分56秒,Thiago Gomes写道: