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 |
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
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
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
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
5 matches
Mail list logo