Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sed and xentools413



> 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.]


Home | Main Index | Thread Index | Old Index