|
84749 packages online
|
|
|
|
|
|
No screenshot available
|
|
This ARexx script gives wildcard support to commands which don't
support wildcards. It is similar to SPat, however SPat works by
expanding the wildcards and calling the command multile times.
Cowpat expands the wildcard and submits it as a list of files
on a single command line.
There are two variations - cowpat.rexx and cowpat2.rexx. The only
difference is that cowpat2 will put the arguments before the
filenames.
Example:
cowpat.rexx gifsicle #?.gif >output.gif
Often ported commands need switches before all the filenames. In
this case, use cowpat2:
cowpat2.rexx gifsicle #?.gif -l >output.gif
Be a bit careful - you may find the output filename needs to be the
last on the line. In this case, use cowpat.rexx as cowpat2.rexx
re-arranges the arguments and the last filename will be an existing
one.
INSTALLATION
============
Copy cowpat.rexx and cowpat2.rexx to somewhere in your path (probably
REXX:)
KNOWN BUGS
==========
Commands or patterns with spaces in them won't work. ARexx's command
line parsing is a bit rubbish so I couldn't get this to work without
breaking the usual case. You can add '"' between the variable names
on the parse arg line, and enclose everything in quotes when calling
Cowpat if you need to specify spaces.
DISCLAIMER
==========
I will not accept responsibility for any damage, loss of data either
directly or indirectly caused by use of this script ("cowpat.rexx" and
"cowpat2.rexx"). All use is at your own risk.
-----BEGIN PGP MESSAGE-----
Version: 2.6.3in
iQB7AwUAS26ZebO1+24s2ZO5AQEcHQMrB8LPEtfay/4EuGFwZHef0soN3Q+VGRjc
I5ETu4FAeIypVuZHHCKPorVm/Ml6T/x3IPRaQRUBJ/H8P7HsTmnVGp8PHUFPM5Wr
zSFs+fTZFvNceJsQov1lZztX5yjHNBaMQQ1Qjx2Z
=19RI
-----END PGP MESSAGE-----
|
Contents of util/batch/cowpat.lha
PERMSSN UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 857 1686 50.8% -lh5- 09a8 Feb 7 10:42 Cowpat/cowpat.readme
[generic] 313 595 52.6% -lh5- 6ecf Feb 7 00:21 Cowpat/cowpat.rexx
[generic] 338 654 51.7% -lh5- 058f Feb 7 00:22 Cowpat/cowpat2.rexx
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 3 files 1508 2935 51.4% Feb 7 19:25
|
|
|
|
Page generated in 0.01 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminetaminet net> |