AminetAminet
Search:
84479 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/rexx/ftx.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:copy one file to x-others
Author:megacz(megacz at usa.com)
Uploader:megacz(megacz usa com)
Type:util/rexx
Version:0.00
Requires:68000+/os2.04+
Architecture:generic
Distribution:Aminet
Date:2006-07-24
Download:http://aminet.net/util/rexx/ftx.lha - View contents
Readme:http://aminet.net/util/rexx/ftx.readme
Downloads:639

hello, again!

This time i made a script that is capable of picking one source
and clone in to x-others, this is mainly useful when dealing
with mui .prefs files. For instance, u have just finished confi-
guring the gui for lets say AmIRC.1 and want it for .2,.3,.4,..
so u need to copy it by the hand and change the numbers...
This is so boring! So thats why 'ftx' has been made.


template: ftx <infile> <outfile> [copies] [start]


example:

"
31.[local]RamDisk:> ftx env:mui/AmIRC.1.prefs env:mui/AmIRC.%.prefs 9 2
copies set to: 9, starts at: 2
loading file into memory...
got 4740 of 4740, 1 arexx cells(65535), 0.04 secs.
writing to: env:mui/AmIRC.2.prefs, env:mui/AmIRC.3.prefs, 
env:mui/AmIRC.4.prefs, env:mui/AmIRC.5.prefs, env:mui/AmIRC.6.prefs, 
env:mui/AmIRC.7.prefs, env:mui/AmIRC.8.prefs, env:mui/AmIRC.9.prefs, 
env:mui/AmIRC.10.prefs, 
done in 0.12 secs.
31.[local]RamDisk:>  
"

As u can see it had made 9 entries starting from 2 in 0.16(0.04+0.12)
secs! Try to be faster, with copy and rename =D. Of course things
change a lot when u need 1000+ files to be created, but who da hell
needs such a bunch of shit in 'env:mui/' ?


NOTE : script doesnt check if the input file and output path exists,
       so dont be suprised when it will show an error when in and out
       r improper. Also do not use paths with spaces it will not work!

NOTE2: u can use 'ftx' like a 'copy' command too, just dont specify
       '%' anywhere in the output and do not set -copies- and -start-.


cu!



F-t(o)-X(ARexx) by megacz2k6(megacz at usa.com)


Contents of util/rexx/ftx.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  778    1554  50.1% -lh5- e30e Jul 24 13:18 ftx/ftx
[generic]                  828    1548  53.5% -lh5- a4d9 Jul 24 13:52 ftx/ftx.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    1606    3102  51.8%            Jul 24 16:17

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>