On Wed, Apr 11, 2007 at 12:22:16PM -0500, Russell L. Harris wrote:
> Is it possible to spread a sed command over multiple lines, to improve
> readability (for the sake of future maintenance)? If so, what
> character is used to break the line and what are the rules?
>
> For example, I would like t
>
> sed -e 's/\.//g'
> -e 's/\,//g'
> -e 's/\\//g' "$1"
... but also note that this can be done with a single command (escaping is
useless here) : 's/[,/.]//g'
--
Cédric Lucantis
Le mercredi 11 avril 2007 19:22, Russell L. Harris a écrit :
> Is it possible to spread a sed command over multiple lines, to improve
> readability (for the sake of future maintenance)? If so, what
> character is used to break the line and what are the rules?
>
> For example, I would like to re-wr
Russell L. Harris schrieb:
> Is it possible to spread a sed command over multiple lines, to improve
> readability (for the sake of future maintenance)? If so, what
> character is used to break the line and what are the rules?
>
> For example, I would like to re-write the command:
>
> sed -e 's/\./
Is it possible to spread a sed command over multiple lines, to improve
readability (for the sake of future maintenance)? If so, what
character is used to break the line and what are the rules?
For example, I would like to re-write the command:
sed -e 's/\.//g' -e 's/\,//g' -e 's/\\//g' "$1" | so
5 matches
Mail list logo