Afficher un message
Vieux 30/10/2006, 13h21   #8
Robin Fairbairns
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sed: illegal option -- r when running bibexport.sh

"Chris F.A. Johnson" <cfajohnson@gmail.com> writes:
>On 2006-10-29, beatnick wrote:
>>
>> Chris F.A. Johnson wrote:
>>
>>>
>>> You are not doing anything wrong; bibexport.sh is using a
>>> non-standard (GNU only?) option to sed. The guide should have
>>> mentioned that.
>>>

>> hmm, i see. So whats the easiest way to make this work? Bearing in mind
>> that my knowledge of Unix is minimal...

>
> Replace sed with egrep (or grep -E):
>
> Change:
>
> sed -r -e \
> "/^ *[cC][rR][oO][sS][sS][rR][eE][fF] *= *[^,]+,?$/d" \
> ${TMPFILE}.bbl >> ${FINALFILE};
>
>
> To (untested):
>
>grep -E -v '^ *[cC][rR][oO][sS][sS][rR][eE][fF] *= *[^,]+,?$' \
> ${TMPFILE}.bbl >> ${FINALFILE};


this is one of nicolas markey's packages: nicolas, are you listening?
-- it would be good to update, i suspect.
--
Robin Fairbairns, Cambridge
  Réponse avec citation
 
Page generated in 0,05344 seconds with 9 queries