Home » Archimedes archive » Archimedes World » AW-1993-10.adf » AWOct93 » !AWOct93/Goodies/Disc/!Extend/Commands/Greeting

!AWOct93/Goodies/Disc/!Extend/Commands/Greeting

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Archimedes World » AW-1993-10.adf » AWOct93
Filename: !AWOct93/Goodies/Disc/!Extend/Commands/Greeting
Read OK:
File size: 0158 bytes
Load address: 0000
Exec address: 0000
File contents
| Program : Greeting
| Purpose : To illustrate the use of parameters in obey files

| Usage   : Type at the command line
|
|                     *Greeting <Parameter list>
|
|           E.g.
|                   *Greeting Jim Fred
|           or
|                    *Greeting Jim Fred Sally

Echo %0 says hello to %1
Echo %0 says goodbye to %*1
00000000  7c 20 50 72 6f 67 72 61  6d 20 3a 20 47 72 65 65  || Program : Gree|
00000010  74 69 6e 67 0a 7c 20 50  75 72 70 6f 73 65 20 3a  |ting.| Purpose :|
00000020  20 54 6f 20 69 6c 6c 75  73 74 72 61 74 65 20 74  | To illustrate t|
00000030  68 65 20 75 73 65 20 6f  66 20 70 61 72 61 6d 65  |he use of parame|
00000040  74 65 72 73 20 69 6e 20  6f 62 65 79 20 66 69 6c  |ters in obey fil|
00000050  65 73 0a 0a 7c 20 55 73  61 67 65 20 20 20 3a 20  |es..| Usage   : |
00000060  54 79 70 65 20 61 74 20  74 68 65 20 63 6f 6d 6d  |Type at the comm|
00000070  61 6e 64 20 6c 69 6e 65  0a 7c 0a 7c 20 20 20 20  |and line.|.|    |
00000080  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000090  20 2a 47 72 65 65 74 69  6e 67 20 3c 50 61 72 61  | *Greeting <Para|
000000a0  6d 65 74 65 72 20 6c 69  73 74 3e 0a 7c 0a 7c 20  |meter list>.|.| |
000000b0  20 20 20 20 20 20 20 20  20 20 45 2e 67 2e 0a 7c  |          E.g..||
000000c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000d0  20 20 20 2a 47 72 65 65  74 69 6e 67 20 4a 69 6d  |   *Greeting Jim|
000000e0  20 46 72 65 64 0a 7c 20  20 20 20 20 20 20 20 20  | Fred.|         |
000000f0  20 20 6f 72 0a 7c 20 20  20 20 20 20 20 20 20 20  |  or.|          |
00000100  20 20 20 20 20 20 20 20  20 20 2a 47 72 65 65 74  |          *Greet|
00000110  69 6e 67 20 4a 69 6d 20  46 72 65 64 20 53 61 6c  |ing Jim Fred Sal|
00000120  6c 79 0a 0a 45 63 68 6f  20 25 30 20 73 61 79 73  |ly..Echo %0 says|
00000130  20 68 65 6c 6c 6f 20 74  6f 20 25 31 0a 45 63 68  | hello to %1.Ech|
00000140  6f 20 25 30 20 73 61 79  73 20 67 6f 6f 64 62 79  |o %0 says goodby|
00000150  65 20 74 6f 20 25 2a 31                           |e to %*1|
00000158