Re: /bin/ed syntax
- From: Mark Madsen <mark.s.madsen+news@xxxxxxxxx>
- Date: 7 Sep 2008 20:29:30 +0200
On Sun, 07 Sep 2008 12:37:31 +0000, Robert Newson wrote:
Unruh wrote:
"David W. Hodgins" <dwhodgins@xxxxxxxxxxxxxxxxx> writes:...
Hmm. do you mean I can use any character as the delimiter? How does
/bin/ed know that suddenly ! is the seperator rather than the more
usual /?
It's more a case AFAIK that /bin/ed uses the first character after the
command as the string delimiter - thus you can use any character you
like, though I would recommend sticking to the symbols (eg !%:=+ etc).
Correct, and good idea.
[It seems that the slash (/) character is used in examples, and most
often, for some dim dark historic reason (like loop counters are often
i, j, ..., n which AFAIK comes from [original] Fortran where you had to
use an integer variable for a loop variable and by default any variable
starting with one of the 6 letters I, J, ..., N is an integer).]
That's exactly backwards. Fortran reserved those letters for denoting
default integer types because those letters had always been used in
mathematics for the role of index variables.
.
- References:
- /bin/ed syntax
- From: Unruh
- Re: /bin/ed syntax
- From: David W. Hodgins
- Re: /bin/ed syntax
- From: Unruh
- Re: /bin/ed syntax
- From: Robert Newson
- /bin/ed syntax
- Prev by Date: Re: /bin/ed syntax
- Next by Date: Re: which linux?
- Previous by thread: Re: /bin/ed syntax
- Next by thread: Re: /bin/ed syntax
- Index(es):
Relevant Pages
|