home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- dansk:--Introduktion--
- dansk:COMMON
- dansk:CONCAT
- dansk:COUNT
- dansk:DIRTREE
- dansk:HEAD
- dansk:LOWER
- dansk:SPLIT
- dansk:TEE
- dansk:TIMECOM
- dansk:UNIQUE
- English:--Introduction--
- English:COMMON
- English:CONCAT
- English:COUNT
- English:DIRTREE
- English:HEAD
- English:LOWER
- English:SPLIT
- English:TEE
- English:TIMECOM
- English:UNIQUE
- dansk:--Introduktion-- dansk:--Introduktion--
-
- FORMÅL
- At give en kortfattet introduktion til de ekstra AmigaDOS
- kommandoer.
-
- SPECIFIKATION
- Kommandoerne i denne distribution blev skrevet som et
- supplement til samlingen distribueret af Coomodore-Amiga,
- Inc. som en del Systemprogrammelfrigivelse 2.04 (V37) og
- kan ikke køre under ældre frigivelser.
-
- Selvom de generelt er modelleret efter tilsvarende UNIX-
- kommandoer har de en betydelig anderledes grænseflade
- fordi de alle bruger standard AmigaDOSskabeloner.
-
- Alle kommandoerne er `pure' og kan gøres residente.
- Hvis p-flagene ikke er sat når pakken modtages kan man
- sætte dem med kommandoen PROTECT.
-
- SE OGSÅ
- `The AmigaDOS Manual', 3. udgave, Bantam Books, 1991
- og manualen `Using The System Software' leveret med
- Frigivelse 2.04.
-
- OPHAVSRET
- Alle programmer og andre filer inkluderet i denne frigivelse
- er Copyright (c) 1989, 1990, 1991, 1992 Torsten Poulin.
-
- Ophavsretsmeddelelserne i kommandoerne kan vises
- ved at indtaste følgende AmigaDOSkommando:
- 1> VERSION <command> FULL
-
- Rod bare med kildeteksterne. Hvis De laver nogen
- forbedringer, vil jeg blive glad for at få en kopi af dem
- så jeg eventuelt kan medtage dem i næste frigivelse.
-
- Dette er gratis programmer ikke "shareware". Hav ingen
- skyldfølelse ved at bruge dem uden at betale. Den
- eneste betaling jeg virkelig vil sætte pris på er hvis
- De vil lade mig høre om eventuelle fejl i dem. Selvfølgelig
- kan jeg ikke acceptere at andre tjener egentlige penge på at
- distribuere denne programpakke. Den må kun distribueres
- ikke-kommercielt, uden betaling bortset fra det sædvanlige
- __MINDRE_ beløb til at betale for distributionsmediet.
-
- FORFATTERENS ADRESSE
- Send venligst forslag, fejlrapporter, forbedringer osv.
- til følgende adresse:
- Torsten Poulin
- Banebrinken 99, 2, lejlighed 77
- 2400 København NV
-
- VAREMÆRKER
- AmigaDOS er et registreret varemærke tilhørende
- Commodore-Amiga, Inc.
- UNIX er et registreret varemærke tilhørende AT&T.
-
- TAKSIGELSE
- Formuleringen af de følgende manualsider skylder en hel del
- til diverse UNIXmanualer. Jeg håber at folkene bag UNIX
- ikke har noget imod det.
-
- dansk:COMMON dansk:COMMON
-
- FORMAT
- COMMON [FILE1] <fil1> [[FILE2] <fil2>] [-1] [-2] [-3]
-
- SKABELON
- FILE1/A,FILE2,-1/S,-2/S,-3/S
-
- FORMÅL
- At vælge eller fravælge linjer fælles for to sorterede filer.
-
- SPECIFIKATION
- Kommandoen Common læser <fil1> og <fil2>, som skal være
- ordnet i rangfølgen brugt af SORT, og udskriver tre spalter:
- linjer der kun findes i <fil1>, linjer der kun findes i
- <fil2> og linjer der findes i begge filer.
-
- Kontakterne -1, -2 og -3 undertrykker udskrivningen af de
- tilsvarende spalter. Således udskriver Common -1 -2 kun de
- linjer som er fælles for de to filer; Common -2 -3 udskriver
- kun linjer som findes i den første fil, men ikke i den anden.
- Common -1 -2 -3 udskriver ingenting.
-
- SE OGSÅ
- SORT, UNIQUE
-
- TILSVARENDE I UNIX
- comm(BU_CMD)
-
- dansk:CONCAT dansk:CONCAT
-
- FORMAT
- CONCAT [[FROM] <filer|mønstre>] [TO <navn>]
- [SORT] [QUIET] [VISIBLE [TABS] [EOL]] [UNBUF]
-
- SKABELON
- FROM/M,TO/K,SORT/S,QUIET/S,VISIBLE/S,TABS/S,EOL/S,UNBUF/S
-
- FORMÅL
- At sammenkæde og udskrive filer.
-
- SPECIFIKATION
- Concat læser hver af de med FROM angivne filer og skriver
- dem til destinationen angivet af TO. Hvis der ikke er
- angivet nogen FROM-filer, læser Concat fra sit standard-
- input. Ligeledes skriver den til sit standardoutput hvis
- der ikke er angivet en destination med TO.
-
- Følgende kontakter kan bruges med Concat:
-
- SORT FROM-filerne læses i alfabetisk orden. Nyttigt
- ved sammenkædning af filer splittet med SPLIT.
-
- QUIET Concat tier stille om ikke-eksisterende filer.
-
- VISIBLE Usynlige tegn (med undtagelse af tabulerings- og
- ny-linjetegn) bliver udskrevet synligt.
- Styretegn udskrives som ^X (kontrol-x).
- Slettetegnet (heksadecimalt 0x7d) udskrives som
- ^?. Ikke-ASCII-tegn (med mest betydende bit sat)
- udskrives som M-x, hvor x er tegnet givet ved de
- syv mindst betydende bit.
-
- UNBUF Uddata bliver ikke bufferet. (Standard er bufferet
- uddata.)
-
- Når kontakten VISIBLE er angivet kan følgende kontakter
- bruges:
-
- TABS Tabuleringstegn udskrives som ^I'er.
-
- EOL Et $-tegn udskrives i slutningen af hver linje (før
- ny-linjetegnet).
-
- Kontakterne TABS og EOL bliver ignoreret hvis kontakten
- VISIBLE ikke er angivet.
-
- SE OGSÅ
- COPY, JOIN, MORE, SPLIT, TYPE
-
- dansk:COUNT dansk:COUNT
-
- FORMAT
- COUNT [[FROM] <navne|mønstre>] [LINES] [WORDS] [CHARS]
-
- SKABELON
- FROM/M,LINES/S,WORDS/S,CHARS/S
-
- FORMÅL
- At tælle linjer, ord og tegn.
-
- SPECIFIKATION
- Count tæller linjer, ord og tegn i de nævnte filer eller fra
- sit standardinput hvis ingen navne er angivet. Den laver
- også en sluttotal for alle filerne. Et ord er en maksimal
- tegnfølge afgrænset af blank-, tabulerings- eller
- ny-linjetegn.
-
- Kontakterne LINES, WORDS og CHARS kan bruges til at angive
- at en delmængde af linjer, ord og tegn skal rapporteres.
- Hvis der ikke angives nogen kontakter antager Count at der
- menes dem alle sammen.
-
- Når filnavne angives på kommandolinjen udskrives de sammen
- med optællingerne.
-
- dansk:DIRTREE dansk:DIRTREE
-
- FORMAT
- DirTree [DIR] {<katalog>} [NOHEAD]
-
- SKABELON
- DIR/A/M,NOHEAD/S
-
- FORMÅL
- At udskrive underkatalogtræer.
-
- SPECIFIKATION
- DirTree viser underkatalogtræer for de kataloger eller diske
- som er givet ved argumentet DIR. Kontakten NOHEAD
- undertrykker udskrivningen af overskriftinformationen.
-
- EKSEMPEL
- 1> DIRTREE ram:
- Directory tree for "ram:" on Saturday 22-Feb-92
-
- Ram Disk
- +---Clipboards
- +---env
- | `---sys
- |
- `---T
-
- SE OGSÅ
- DIR, LIST
-
- dansk:HEAD dansk:HEAD
-
- FORMAT
- HEAD [[FROM] <filer|mønstre>] [TO <fil>] [NUMBER <n>]
-
- SKABELON
- FROM/M,TO/K,NUM=NUMBER/N/K
-
- FORMÅL
- At vise de første få linjer af de angivne filer.
-
- SPECIFIKATION
- Head kopierer de første NUMBER linjer fra hver FROM-fil
- til sit standardoutput eller, hvis en fil er angivet med
- TO, til den. Hvis ingen filer er angivet med FROM,
- kopierer Head linjer fra sit standardinput. Angives der
- ikke noget antal linjer med NUMBER, vises 10.
-
- Når mere end én fil angives, markeres begyndelsen af hver
- fil således:
-
- ==>filnavn<==
-
- EKSEMPEL
- En måde at vise en samling korte filer, med deres navne,
- er:
-
- 1> HEAD filnavn1 filnavn2 NUMBER 9999
-
- SE OGSÅ
- CONCAT, TAIL, TYPE
-
- TILSVARENDE I UNIX
- head(BU_CMD)
-
- dansk:LOWER dansk:LOWER
-
- FORMAT
- LOWER [BY <værdi>] [STACK <størrelse>]
- [COMMAND] <kommandlinje>
-
- SKABELON
- BY/K/N,STACK/K/N,COMMAND/F/A
-
- FORMÅL
- At udføre en kommando med en rar, muligvis lavere, prioritet.
-
- SPECIFIKATION
- Da Amigaen er et samkørselssystem bruger den prioritetstal
- til at afgøre i hvilken orden de nuværende opgaver skal
- betjenes. Normalt har de fleste opgaver prioriteten 0, og
- centralenhedens tid deles lige mellem dem.
-
- LOWER udfører den angivne kommandolinje med prioriteten
- sænket med <værdi>. Hvis der ikke er angivet nogen værdi
- med BY, bruges 1 som standardværdi. Hvis en negativ værdi
- angives vil prioriteten blive hævet istedet. Den
- resulterende prioritet skal være mellem -128 og +10. Dette
- bliver håndhævet tavst.
-
- Argumentet STACK sætter stakstørrelsen for den kommando der
- skal udføres. Standard er at beholde den nuværende
- størrelse.
-
- Argumentet <kommandolinje> kan være enhver tilladt shell-
- kommandolinje. Dvs. at det er muligt at benytte omdiri-
- gering, aliaser, residente kommandoer osv.
-
- LOWER efterlader resultaterne af den udførte kommando
- i tilstandsflagene RC og Result2. Ctrl-C, D, E og F
- sendes til kommandoen der er ved at blive udført.
-
- Kort sagt, brugen af LOWER er transparent.
-
- EKSEMPLER
- Skriv
-
- 1> LOWER COPY Tekst TO PRT:
-
- for at udskrive filen Tekst på skriveren.
- Og for at søge, i baggrunden, efter forekomster af tegn-
- følgen "foo", i kataloget S:, kan man gøre følgende:
-
- 1> RUN LOWER BY 2 SEARCH S: "foo" TO MinUddatafil
-
- SE OGSÅ
- CHANGETASKPRI, STACK, STATUS
-
- dansk:SPLIT dansk:SPLIT
-
- FORMAT
- SPLIT [[FROM] <fil>] [TO <navn>] [NUMBER <n> [PARTS]]
- [BYTES] [PROMPT]
-
- SKABELON
- FROM,TO/K,NUM=NUMBER/K/N,PARTS/S,BYTES/S,PROMPT/S
-
- FORMÅL
- At splitte en fil i mindre stykker.
-
- SPECIFIKATION
- Split læser <fil> og udskriver den i <n>-linje stykker
- (standard er 1000 linjer) som en gruppe filer. Navnet
- på den første uddatafil er <navn> efterfulgt af aa og
- så fremdeles, leksikografisk, indtil zz (højst 676 filer).
- <navn> forkortes til 28 tegn hvis det er længere. Hvis
- der ikke er angivet noget uddatanavn, bruges x.
-
- Hvis kontakten BYTES bruges vil inddatafilen blive delt
- i stykker på <n> tegn i stedet. Dette er særlig nyttigt
- hvis inddata er en binær fil.
-
- Kontakten PARTS, der kun kan bruges sammen med argumentet
- NUMBER, deler inddatafilen i det angivne antal dele.
-
- Kontakten PARTS indebærer automatisk kontakten BYTES.
-
- Hvis kontakten PROMPT angives vil brugeren blive spurgt
- før hver uddatafil skrives for at muliggøre disketteskift.
-
- Hvis ingen inddatafil er angivet læses fra standardinputtet,
- hvilket gør det muligt at bruge Split som afslutningen på
- en pipe.
-
- EKSEMPEL
- Hvis filen `minfil' splittes op med en kommando som
- 1> SPLIT minfil TO splitfil.
- kan den samles igen med følgende kommando:
- 1> CONCAT splitfil.?? TO nyfil SORT
-
- ADVARSEL
- Brug ikke kontakten PARTS hvis der læses fra en pipe, da
- den får Split til at forsøge at bestemme størrelsen af
- sit input med funktionen Seek() fra dos.library. Hvis
- man gør det vil man sandsynligvis ende med en mængde
- små filer med typisk én oktet i hver.
-
- SE OGSÅ
- CONCAT, JOIN, TYPE
-
- dansk:TEE dansk:TEE
-
- FORMAT
- TEE [[TO] <filer>] [APPEND] [IGNORE]
-
- SKABELON
- TO/M,APPEND/S,IGNORE/S
-
- FORMÅL
- Tee er en rørfitting.
-
- SPECIFIKATION
- Tee transskiberer sit standardinput til sit standardoutput
- og laver kopier i de filer der angives med argumentet TO.
-
- Med kontakten APPEND tilføjes uddata til filerne fremfor
- at overskrive dem.
-
- Ctrl-C'er kan ignoreres ved at bruge kontakten IGNORE.
-
- dansk:TIMECOM dansk:TIMECOM
-
- FORMAT
- TIMECOM [TO <logfil> [APPEND]] [COMMAND] <kommandolinje>
-
- SKABELON
- TO/K,APPEND/S,COMMAND/F/A
-
- FORMÅL
- At tage tid på en kommando.
-
- SPECIFIKATION
- Argumentet <kommandolinje> udføres. Når det er færdig
- udskriver TimeCom den forløbne tid. Tiden rapporteres i
- sekunder.
-
- Tiden udskrives på CONSOLE: medmindre argumentet TO bruges
- til at angive en uddatafil. Kontakten APPEND tilføjer
- uddata til slutningen uddatafilen. Dette er nyttigt til
- at føre en logfil over kørselstiderne for flere
- kommandoer.
-
- EKSEMPLER
- 1> TIMECOM MitProgram
- Elapsed time: 23 seconds.
-
- 1> TIMECOM TO tidslog APPEND MitProgram
- 1> TYPE tidslog
- Elapsed time: 23 seconds. Command: MitProgram
-
- 1> ALIAS MitProgram "TIMECOM TO logfil APPEND MitProgram"
- 1> MitProgram
-
- ADVARSEL
- Tiderne er ikke ekstremt nøjagtige.
-
- SE OGSÅ
- intuition.library/CurrentTime
- i `ROM Kernel Reference Manual: Includes and Autodocs.'
-
- dansk:UNIQUE dansk:UNIQUE
-
- FORMAT
- UNIQUE [[FROM] <fil>] [[TO] <fil>] [REPEATED][UNIQUE][COUNT]
-
- SKABELON
- FROM,TO,REPEATED/S,UNIQUE/S,COUNT/S
-
- FORMÅL
- At rapportere gentagne linjer i en fil.
-
- SPECIFIKATION
- Kommandoen Unique læser filen FROM og sammenligner
- tilstødende linjer. I det normale tilfælde fjernes den
- anden og efterfølgende kopier af gentagne linjer.
- Resten af filen skrives til filen TO. Bemærk at gentagne
- linjer skal stå lige efter hinanden for at blive fundet
- (se SORT). Hvis kontakten UNIQUE bruges bliver kun de
- linjer der ikke er gentaget i den oprindelige fil
- udskrevet. Kontakten REPEATED angiver at én kopi af kun
- de gentagne linjer skal udskrives. Den normale adfærd
- er at udskrive foreningsmængden af hvad UNIQUE og
- REPEATED ville producere.
-
- Kontakten COUNT frembringer en uddatarapport hvor hver
- linje er foranstillet antallet af gange den forekom.
-
- Hvis argumentet FROM ikke er angivet, læses inddata fra
- standardinputtet. Ligeledes skrives uddata til standard-
- outputtet hvis argumentet TO er udeladt.
-
- SE OGSÅ
- COMMON, COUNT, SORT
-
- FEJL OG MANGLER
- Unique vil ikke virke korrekt hvis nogle inddatalinjer
- er længere end 512 tegn.
-
- TILSVARENDE I UNIX
- uniq(BU_CMD)
-
- English:--Introduction-- English:--Introduction--
-
- PURPOSE
- To give a brief introduction to the extra AmigaDOS commands.
-
- SPECIFICATION
- The commands in this distribution were written to augment
- the collection distributed by Commodore-Amiga, Inc. as part
- of the System Software Release 2.04 (V37) and will not run
- under older releases.
-
- Though they are generally modelled after equivalent UNIX
- commands they have a substantially different interface
- because they all use the standard AmigaDOS templates.
-
- All the commands are `pure' and can be made resident.
- If the p-flags are not set when you recieve the package
- you can set them with the PROTECT command.
-
- SEE ALSO
- `The AmigaDOS Manual', 3rd. Edition, Bantam Books, 1991
- and the `Using The System Software' manual distributed
- with Release 2.04.
-
- COPYRIGHT
- All the programs and other files included in this distribution
- are Copyright (c) 1989, 1990, 1991, 1992 Torsten Poulin.
-
- The copyright messages in the commands can be
- displayed by typing the following AmigaDOS command:
- 1> VERSION <command> FULL
-
- Feel free to mess around with the source code. If you
- make any improvements, I would appreciate a copy of them
- so that they can be incorporated into the next release
- if appropriate.
-
- This is FreeWare not ShareWare. Feel no guilt about
- using it without paying for it. The only payment I would
- really appreciate is if you could let me know about bugs
- you discover. Of course no one can make any real money
- for distributing this package. It may only be
- distributed for non-commercial purposes free of charge
- except for the usual __MINOR__ fee to pay for the
- distribution media.
-
- AUTHOR'S ADDRESS
- Please send suggestions, bug reports, improvements, etc.
- to the following address:
- Torsten Poulin
- Banebrinken 99, 2, lejlighed 77
- DK 2400 København NV
- DENMARK
-
- TRADEMARKS
- AmigaDOS is a registered trademark of Commodore-Amiga, Inc.
- UNIX is a registered trademark of AT&T.
-
- ACKNOWLEDGEMENT
- The wording of the following manual pages owes quite a lot
- to various UNIX manuals. I hope the folks behind UNIX
- don't mind.
-
- English:COMMON English:COMMON
-
- FORMAT
- COMMON [FILE1] <file1> [[FILE2] <file2>] [-1] [-2] [-3]
-
- TEMPLATE
- FILE1/A,FILE2,-1/S,-2/S,-3/S
-
- PURPOSE
- To select or reject lines common to two sorted files.
-
- SPECIFICATION
- The command Common reads <file1> and <file2>, which should be
- ordered in the collating sequence of SORT, and produces a
- three-column output: lines only in <file1>; lines only in
- <file2>; and lines in both files.
-
- Switches -1, -2, or -3 suppress printing of the corresponding
- column. Thus Common -1 -2 prints only the lines common to
- the two files; Common -2 -3 prints only the lines in the first
- file but not in the second; Common -1 -2 -3 is a no-op.
-
- SEE ALSO
- SORT, UNIQUE
-
- UNIX EQUIVALENT
- comm(BU_CMD)
-
- English:CONCAT English:CONCAT
-
- FORMAT
- CONCAT [[FROM] <files|patterns>] [TO <name>]
- [SORT] [QUIET] [VISIBLE [TABS] [EOL]] [UNBUF]
-
- TEMPLATE
- FROM/M,TO/K,SORT/S,QUIET/S,VISIBLE/S,TABS/S,EOL/S,UNBUF/S
-
- PURPOSE
- To concatenate and print files.
-
- SPECIFICATION
- Concat reads each of the specified FROM files and writes it
- to the destination specified by the TO option. If no FROM
- option is given Concat reads from its default input; likewise
- if no TO option is specified it writes to its default output.
-
- The following switches apply to Concat.
-
- SORT The FROM files are read in alphabetical order.
- Useful when concatenating files split with Split.
-
- QUIET Concat is quiet about non-existent input files.
-
- VISIBLE Causes non-printing characters (with the exception
- of tabs and new-lines) to be printed visibly.
- Control characters are printed as ^X (control-x);
- the DEL character (hex 0x7d) is printed as ^?.
- Non-ASCII characters (with the high bit set) are
- printed as M-x, where x is the character specified
- by the seven low order bits.
-
- UNBUF The output is not buffered. (The default is
- buffered output.)
-
- When used with the VISIBLE switch, the following switches
- may be used.
-
- TABS Causes tabs to be printed as ^I's.
-
- EOL Causes a $ character to be printed at the end of
- each line (prior to the new-line).
-
- The TABS and EOL switches are ignored if the VISIBLE
- switch is not specified.
-
- SEE ALSO
- COPY, JOIN, MORE, SPLIT, TYPE
-
- English:COUNT English:COUNT
-
- FORMAT
- COUNT [[FROM] <names|patterns>] [LINES] [WORDS] [CHARS]
-
- TEMPLATE
- FROM/M,LINES/S,WORDS/S,CHARS/S
-
- PURPOSE
- To count lines, words, and characters.
-
- SPECIFICATION
- Count counts lines, words, and characters in the named files,
- or in the default input if no names appear. It also keeps
- a total count for all named files. A word is a maximal
- string of characters delimited by spaces, tabs, or new-lines.
-
- The switches LINES, WORDS, and CHARS may be used to specify
- that a subset of lines, words, and characters are to be
- reported. If no switches are given Count defaults to
- all of them.
-
- When names are specified on the command line, they will be
- printed along with the counts.
-
- English:DIRTREE English:DIRTREE
-
- FORMAT
- DirTree [DIR] {<directory>} [NOHEAD]
-
- TEMPLATE
- DIR/A/M,NOHEAD/S
-
- PURPOSE
- To print sub-directory trees.
-
- SPECIFICATION
- DirTree displays the sub-directory trees for the directories
- or volumes specified in the DIR argument. The NOHEAD switch
- suppresses the printing of the header information.
-
- EXAMPLE
- 1> DIRTREE ram:
- Directory tree for "ram:" on Saturday 22-Feb-92
-
- Ram Disk
- +---Clipboards
- +---env
- | `---sys
- |
- `---T
-
- SEE ALSO
- DIR, LIST
-
- English:HEAD English:HEAD
-
- FORMAT
- HEAD [[FROM] <files|patterns>] [TO <file>] [NUMBER <n>]
-
- TEMPLATE
- FROM/M,TO/K,NUM=NUMBER/N/K
-
- PURPOSE
- To display first few lines of specified files.
-
- SPECIFICATION
- Head copies the first NUMBER lines of each FROM file to the
- default output or the TO file if one is given. If no FROM
- files are given, Head copies lines from the default input.
- The default number of lines is 10.
-
- When more than one file is specified, the start of each
- file looks like:
-
- ==>filename<==
-
- EXAMPLE
- A way to display a set of short files, identifying each
- one, is:
-
- 1> HEAD filename1 filename2 NUMBER 9999
-
- SEE ALSO
- CONCAT, TAIL, TYPE
-
- UNIX EQUIVALENT
- head(BU_CMD)
-
- English:LOWER English:LOWER
-
- FORMAT
- LOWER [BY <value>] [STACK <size>] [COMMAND] <command line>
-
- TEMPLATE
- BY/K/N,STACK/K/N,COMMAND/F/A
-
- PURPOSE
- To run a command at a nice, possibly lower, priority.
-
- SPECIFICATION
- Since the Amiga is multitasking, it uses priority numbers to
- determine the order in which current tasks should be serviced.
- Normally, most tasks have a priority of 0, and the time and
- instruction cycles of the CPU are divided equally among them.
-
- LOWER executes the specified command line with the priority
- lowered by <value>. If no BY option is specified a default
- value of 1 is used. If a negative value is specified the
- priority will be raised instead. The resulting priority will
- be between -128 and +10. This is enforced silently.
-
- The STACK option sets the stack size of the command to be
- executed. Default is to use the current stack size.
-
- The <command line> is any valid shell command line; i.e. it
- is possible to use redirection, aliases, resident commands
- etc.
-
- LOWER leaves the value of the executed command in the
- condition flags RC and Result2. Ctrl-C, D, E, and F are
- sent to the executed command.
-
- In short, the use of LOWER is tranparent.
-
- EXAMPLES
- To print the file Text at lower priority, type:
-
- 1> LOWER COPY Text TO PRT:
-
- And to search, in the background, for occurences of the
- string "foo", in the S: directory, you might issue
- the following:
-
- 1> RUN LOWER BY 2 SEARCH S: "foo" TO MyOutputFile
-
- SEE ALSO
- CHANGETASKPRI, STACK, STATUS
-
- English:SPLIT English:SPLIT
-
- FORMAT
- SPLIT [[FROM] <file>] [TO <name>] [NUMBER <n> [PARTS]]
- [BYTES] [PROMPT]
-
- TEMPLATE
- FROM,TO/K,NUM=NUMBER/K/N,PARTS/S,BYTES/S,PROMPT/S
-
- PURPOSE
- To split a file into pieces.
-
- SPECIFICATION
- Split reads <file> and writes it in <n>-line pieces (default
- 1000 lines) onto a set of output files. The name of the
- first output file is <name> with aa appended, and so on
- lexicographically, up to zz (a maximum of 676 files). <name>
- is truncated to 28 characters if it is longer. If no output
- name is given, x is default.
-
- If the BYTES switch is used, the input file will be split in
- <n>-character pieces instead. This is especially useful
- if the input is a binary file.
-
- The PARTS switch, which can only be used in conjunction with
- the NUMBER option, splits the input file in the specified
- number of parts.
-
- The PARTS switch implies the BYTES switch.
-
- If the PROMPT switch is specified, the user will be prompted
- before each output file is written, to make it possible to
- change disks.
-
- If no input file is given then the default input is used
- making it possible to use Split as the end of a pipe-line.
-
- EXAMPLE
- If the file `myfile' is split up with a command like this:
- 1> SPLIT myfile TO splitfile.
- it can be assembled again with the following command:
- 1> CONCAT splitfile.?? TO newfile SORT
-
- WARNING
- Do not use the PARTS switch if reading from a pipe as
- it causes Split to attempt to determine the size of it's
- input using the dos.library function Seek(). If you do
- it chances are that you end up with lots of small files
- typically containing one byte each.
-
- SEE ALSO
- CONCAT, JOIN, TYPE
-
- English:TEE English:TEE
-
- FORMAT
- TEE [[TO] <files>] [APPEND] [IGNORE]
-
- TEMPLATE
- TO/M,APPEND/S,IGNORE/S
-
- PURPOSE
- Tee is a pipe fitting.
-
- SPECIFICATION
- Tee transcribes the default input to the default output and
- makes copies in the files specified by the TO option.
-
- The APPEND switch causes the output to be appended to the
- files rather than overwriting them.
-
- Ctrl-C's can be ignored by giving the IGNORE switch.
-
- English:TIMECOM English:TIMECOM
-
- FORMAT
- TIMECOM [TO <log file> [APPEND]] [COMMAND] <command line>
-
- TEMPLATE
- TO/K,APPEND/S,COMMAND/F/A
-
- PURPOSE
- To time a command.
-
- SPECIFICATION
- The <command line> is executed; after it is complete, TimeCom
- prints the elapsed time during the command. The time is
- reported in seconds.
-
- The time is printed on CONSOLE: unless the TO option is used
- to specify an output file. The APPEND switch adds the output
- to the end of the specified output file. This is useful for
- keeping a log of the execution times of several commands.
-
- EXAMPLES
- 1> TIMECOM MyProgram
- Elapsed time: 23 seconds.
-
- 1> TIMECOM TO timelog APPEND MyProgram
- 1> TYPE timelog
- Elapsed time: 23 seconds. Command: MyProgram
-
- 1> ALIAS MyProgram "TIMECOM TO log APPEND MyProgram"
- 1> MyProgram
-
- WARNING
- The time value is not extremely accurate.
-
- SEE ALSO
- intuition.library/CurrentTime
- in `ROM Kernel Reference Manual: Includes and Autodocs.'
-
- English:UNIQUE English:UNIQUE
-
- FORMAT
- UNIQUE [[FROM] <file>] [[TO] <file>] [REPEATED][UNIQUE][COUNT]
-
- TEMPLATE
- FROM,TO,REPEATED/S,UNIQUE/S,COUNT/S
-
- PURPOSE
- To report repeated lines in a file.
-
- SPECIFICATION
- The command Unique reads the FROM file comparing adjacent
- lines. In the normal case, the second and succeeding copies
- of repeated lines are removed; the remainder is written
- on the TO file. Note that repeated lines must be adjacent
- to be found (see SORT). If the UNIQUE switch is used, just
- the lines that are not repeated in the original file are
- output. The REPEATED switch specifies that one copy of just
- the repeated lines is to be written. The normal mode ouput
- is the union of the UNIQUE and REPEATED mode outputs.
-
- The COUNT switch generates an output report with each line
- preceeded by a count of the number of times it occured.
-
- If no FROM file is given input is read from the default
- input; likewise if no TO file is given output is written
- to the default output.
-
- SEE ALSO
- COMMON, COUNT, SORT
-
- BUGS
- Unique will fail to function correctly given input lines
- longer than 512 characters.
-
- UNIX EQUIVALENT
- uniq(BU_CMD)
-
-
-