Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sed and xentools413
On Thu, 11 Mar 2021, Martin Neitzel wrote:
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.
This, depeneds on the shell, I think. Only very old shells turn
_every_ '\char' -> 'char'. In POSIX shells, only some chars are
special after a '\' inside double-quotes:
\\ -> \
\" -> "
\` -> `
All other instances of '\char' in a DQ-string are preserved.
-RVP
Home |
Main Index |
Thread Index |
Old Index