Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !SLIPdial/Resources/UK/Help/copy
!SLIPdial/Resources/UK/Help/copy
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 » Acorn User » AU 1995-04.adf » !Internet_StarterPak |
Filename: | !SLIPdial/Resources/UK/Help/copy |
Read OK: | ✔ |
File size: | 01DC bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
copy [/head=<n> /tail=<n>] <file1> <file2> copies one file to another. With either the /head or /tail qualifier, copies only the first or last <n> lines of the file. If <n> is unspecified, a default of 50 is used. For both move and copy, a '*' within the destination filename is replaced with a 4-digit random number such that the destination file is guaranteed unique. The created destination filename is also stored in the script variable '$dest', for later reference.
00000000 63 6f 70 79 20 5b 2f 68 65 61 64 3d 3c 6e 3e 20 |copy [/head=<n> | 00000010 2f 74 61 69 6c 3d 3c 6e 3e 5d 20 3c 66 69 6c 65 |/tail=<n>] <file| 00000020 31 3e 20 3c 66 69 6c 65 32 3e 0a 20 63 6f 70 69 |1> <file2>. copi| 00000030 65 73 20 6f 6e 65 20 66 69 6c 65 20 74 6f 20 61 |es one file to a| 00000040 6e 6f 74 68 65 72 2e 0a 20 57 69 74 68 20 65 69 |nother.. With ei| 00000050 74 68 65 72 20 74 68 65 20 2f 68 65 61 64 20 6f |ther the /head o| 00000060 72 20 2f 74 61 69 6c 20 71 75 61 6c 69 66 69 65 |r /tail qualifie| 00000070 72 2c 20 63 6f 70 69 65 73 20 6f 6e 6c 79 20 74 |r, copies only t| 00000080 68 65 20 66 69 72 73 74 20 6f 72 20 6c 61 73 74 |he first or last| 00000090 20 3c 6e 3e 0a 20 20 6c 69 6e 65 73 20 6f 66 20 | <n>. lines of | 000000a0 74 68 65 20 66 69 6c 65 2e 20 49 66 20 3c 6e 3e |the file. If <n>| 000000b0 20 69 73 20 75 6e 73 70 65 63 69 66 69 65 64 2c | is unspecified,| 000000c0 20 61 20 64 65 66 61 75 6c 74 20 6f 66 20 35 30 | a default of 50| 000000d0 20 69 73 20 75 73 65 64 2e 0a 0a 46 6f 72 20 62 | is used...For b| 000000e0 6f 74 68 20 6d 6f 76 65 20 61 6e 64 20 63 6f 70 |oth move and cop| 000000f0 79 2c 20 61 20 27 2a 27 20 77 69 74 68 69 6e 20 |y, a '*' within | 00000100 74 68 65 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 |the destination | 00000110 66 69 6c 65 6e 61 6d 65 20 69 73 20 72 65 70 6c |filename is repl| 00000120 61 63 65 64 0a 77 69 74 68 20 61 20 34 2d 64 69 |aced.with a 4-di| 00000130 67 69 74 20 72 61 6e 64 6f 6d 20 6e 75 6d 62 65 |git random numbe| 00000140 72 20 73 75 63 68 20 74 68 61 74 20 74 68 65 20 |r such that the | 00000150 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 69 6c 65 |destination file| 00000160 20 69 73 20 67 75 61 72 61 6e 74 65 65 64 0a 75 | is guaranteed.u| 00000170 6e 69 71 75 65 2e 20 54 68 65 20 63 72 65 61 74 |nique. The creat| 00000180 65 64 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 66 |ed destination f| 00000190 69 6c 65 6e 61 6d 65 20 69 73 20 61 6c 73 6f 20 |ilename is also | 000001a0 73 74 6f 72 65 64 20 69 6e 20 74 68 65 20 73 63 |stored in the sc| 000001b0 72 69 70 74 0a 76 61 72 69 61 62 6c 65 20 27 24 |ript.variable '$| 000001c0 64 65 73 74 27 2c 20 66 6f 72 20 6c 61 74 65 72 |dest', for later| 000001d0 20 72 65 66 65 72 65 6e 63 65 2e 0a | reference..| 000001dc