OS4 DepotLogo by DBAlex 
(anonymous IP: 54.80.60.91,1132) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 
 Categories

   o Audio (328)
   o Datatype (47)
   o Demo (180)
   o Development (528)
   o Document (21)
   o Driver (87)
   o Emulation (141)
   o Game (853)
   o Graphics (456)
   o Library (88)
   o Network (200)
   o Office (56)
   o Utility (804)
   o Video (60)

Total files: 3849

Full index file. Download
Recent index file. Download




 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Utility » Misc » foreach_igracki.lha

Foreach Igracki

Description: Execute a command for every argument
Download: foreach_igracki.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 7kb
Version: 1.1
Date: 28 Jul 13
Author: Thomas Igracki
Submitter: uploader
Category: utility/misc
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 8103
 
Comments: 1
Snapshots: 0
Downloads: 126  (Current version)
126  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show content Show crashlogs Replace file 
Usage: Foreach <strings> DO <command> [FILE] [VERBOSE]

Execute "command" for every word in "strings".
A "%s" in "command" will be replaced with the current word in "strings".
If a command returned an error, the execution gets aborted!

If you specify FILE on the commandline every word in "strings" is treated as a
file incl. pattern matching! Non existing files are skipped.
f.e. Foreach FILE "ram:#?" "sys:#?" DO "echo %s"

I use it in combination with my ecx-script to compile multiple sources with one
command.

Its written in AmigaE with the ecx compiler by Leif Salomonsson!
I also included a 68k and AmigaOS4 version.

History:

09-Jul-13: v1.1
  new: added a FILE/S switch, "strings" are then treated as files, incl. pattern
matching!

01-Jul-13: v1.0 first release 




Copyright (c) 2004-2017 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment