First, I left out the "@" character immediately after the EG command on
the last line.
The result is to use the RT-11 command: DATE 1-DEC-99
in order to keep the character count the same. I corrected the contents
of the 49
characters to reflect the missing "@" character in the two alternatives
at the end
of this e-mail.
Since the number of characters in the file name, "SDATE.COM", can also
be adjusted,
the total number of characters can easily be reduced by 6 if the file
name "D.COM"
is used instead.
It might be helpful to know that the 49 characters may also be typed in
after the command:
RUN TECO
The result of executing the 49 characters is to produce the file
SDATE.COM which
contains the RT-11 command:
DATE 1-DEC-99
The final TECO command, "EG at SDATE$$", then executes "SDATE.COM" as
a command
file and sets the date to: 1-Dec-1999.
Jerome H. Fine wrote:
Richard wrote:
OK, let me rephrase this from another
perspective.
What's the coolest TECO command sequence you can write in 49 characters?
I tested this set of 49 characters in the file: SDATE.TEC by
executing the command:
MUNG SDATE
under RT-11. I don't think this is the "coolest" command I can write,
but the 49 character
requirement makes any other possibility difficult.
The "$" characters are the <ESC> character.
ALL of the "J"s are filler characters that can be removed if you want
to count the <CR><LF>
characters as well at the end of each line.
I would have preferred to allow the user to include the current date
on the MUNG
command line, but this took too many characters.
If you feel that the <CR><LF> characters do not count, then leave them
in if the total
character count must be exactly 49 characters.
Line 1 has 16 characters
Line 2 has 16 characters
Line 3 has 17 characters
The file follows.
Jerome Fine
____________________________________________________________________
^UDDATE 1-DEC-99
$JGDEWSDATE.COM$
ECJJJJJEG at SDATE$$
In addition, removing the SIX "J" characters and substituting
"ITECO$"
will also do nothing.
^UDDATE 1-DEC-99
$GDEWSDATE.COM$
ECITECO$EG at SDATE$$
____________________________________________________________________