sed command spanning multiple lines

2007-04-11 Thread Russell L. Harris
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 |

Re: sed command spanning multiple lines

2007-04-11 Thread Björn Keil
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/\.//g' -e

Re: sed command spanning multiple lines

2007-04-11 Thread 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-write

Re: sed command spanning multiple lines

2007-04-11 Thread Cédric Lucantis
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

Re: sed command spanning multiple lines

2007-04-11 Thread Andrew Sackville-West
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 to