centre
Centre strings on a line
Short: Centre strings on a line
Author: krf101@york.ac.uk (Kevin Fairhurst)
Uploader: krf101 york ac uk (Kevin Fairhurst)
Type: util/batch
Architecture: m68k-amigaos
Want to centre strings in text files or from CLI?
But you don't want to have to count characters,
then divide by 2, then press space an exact number of times,
ooops, did you press it once too often? Start again ...
This is where 'Centre' comes in!
'Centre' is like a basic version of Echo. Whatever you type in as an
argument is output to the CLI or (via redirection) to a file. However, it
is centred on the line first.
Any lines of longer than 77 characters will be cut down to this number.
If you wish to use redirection, do no use it in the middle of a quoted
string!
ie Centre "Hello >RAM:Bob Bob!" will not work as planned!
Catch ya later ...
Kev
Gratis
Desde el Amiga: abre Hangar y busca centre.
| Autor | krf101@york.ac.uk (Kevin Fairhurst) |
|---|---|
| Categoría | util/batch |
| Tamaño | 1 KB |
| Para | m68k-amigaos |
| Origen | Aminet |