Re^2: Vi
Maarten Litmaath
maart at cs.vu.nl
Tue Jun 13 05:03:07 AEST 1989
leo at philmds.UUCP (Leo de Wit) writes:
\...
\#! /bin/sed -f
\...
\ s/\(\n\)\([^ ][^ ][^ ][^ ][^ ]\) /\2 \1/
\...
\/......................................................................../!{
\...
Leo's sed `solution' makes 2 things clear:
1) sed ought to have C escape sequences like '\t'
2) sed ought to have some kind of `run' specifier
- quick: how many dots did Leo put on the `/<dots>/!{' line?
Ad 1: one should AVOID putting a HARD TAB in human-readable code, where using
the APPROPRIATE NUMBER OF SPACES would NOT have the SAME EFFECT.
Indentation: OK.
Example: in shell scripts use
tab=`ctrl I`
..."$tab"...
instead of
..." "...
--
"I HATE arbitrary limits, especially when |Maarten Litmaath @ VU Amsterdam:
they're small." (Stephen Savitzky) |maart at cs.vu.nl, mcvax!botter!maart
More information about the Comp.unix.questions
mailing list