> sed "s/^ *\([0-9]*\)\t.*$/\1/" hunspell-capmain-plus_de_DE[...]
> sed: 1: "s/^ *\([0-9]*\)\t.*$/\1/": RE error: trailing backslash (\)

(1) Others have already corrected this silently but to make it explicit:

        The \ need to be \\ within double-quotes.  They simply
        vanish when used as above.

        The \ could remain single \ within single-quotes.

(2) Also, as others have already noted:  NetBSD/POSIX sed won't grok
the \t as a TAB notation.  A cut-n-paste-safe version would be:

TAB=$(printf '\t')
sed 's/^ *\([0-9]*\)'"$TAB"'.*$/\1/' hunspell-capmain-plus_de_DE[...]

                                                Martin Neitzel

[Sorry for the extra header quote in my last mail.]

Reply via email to