Re: /bin/ed syntax



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.
.



Relevant Pages

  • Re: DO D1%I=1,10
    ... the one about consisting of letters, ... digits, and underscores, with the first character being a letter. ... variable, copying it into the structure as needed, perhaps as the first ... line of the DO loop (and maybe after the loop if you also need to catch ...
    (comp.lang.fortran)
  • Re: Hashing for big list of last names
    ... last names of Patients from a CSV file which is a very large list. ... (function is based on the first character of the last name). ... if they start with the same first 3 letters. ...
    (comp.programming)
  • Re: convert f77 code from mixed case to lower case
    ... editor that would have such a capability, as the editor would have to be ... the first character. ... As for the Hollerith constant, ... Any statement that starts with a sequence of letters ...
    (comp.lang.fortran)
  • Re: Word 2003 Autotext Entries
    ... I have several autotext entries that consist of credentials for ... All the letters are shown on ... would appear as a jumble within the first character. ... I am running Office 2003 on XP Pro. ...
    (microsoft.public.word.docmanagement)
  • Re: Rautavaara
    ... caused the following letters to be typed in ... >> As is Gyorgy Ligeti, AFAIK. ... ~ FDR (attrib.) ...
    (rec.music.classical.recordings)