Re: sed: illegal option -- r when running bibexport.sh
+ Bruce Barnett <spamhater113+U061030065017@grymoire.com>:
| Harald Hanche-Olsen <hanche@math.ntnu.no> writes:
|
|> AFAICT, the sed command that started the thread needed the GNU
|> specific -r option because sed regular expressions don't normally
|> support the special character `+'. But the grep ones do, hence no
|> need to use egrep.
|
| ....if your grep supports "+"
|
| But if they are not using GNU sed, then what are the odds that grep
| uses "+"?
Uh, thin. I was reading the man page for the SunOS grep too hastily;
it mentions +, but only in connection with the -E flag, which fact
eluded me. Mea culpa. Egrep it is, then. (But surely, using sed
where grep will do makes very little sense.)
--
* Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
when there is no ground whatsoever for supposing it is true.
-- Bertrand Russell
|