Re: sed: illegal option -- r when running bibexport.sh
On 2006-10-29, beatnick wrote:
> Hi, I'm trying to run bibexport.sh on a LaTeX aux file to produce a
> subsetted .bib file. But when I run ./bibexport.sh it gets as far as
> creating the new .bib file but doesn't write anything to it. Instead I
> get the error:
>
> sed: illegal option -- r
> usage: sed script [-Ean] [-i extension] [file ...]
> sed [-an] [-i extension] [-e script] ... [-f script_file] ...
> [file ...]
>
>
> Can anyone tell me what I'm doing wrong? I've read the user guide,
> searched the web etc, am stumped.
You are not doing anything wrong; bibexport.sh is using a
non-standard (GNU only?) option to sed. The guide should have
mentioned that.
--
Chris F.A. Johnson, author <http://cfaj.freeshell.org/shell>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
|