Results 1 to 6 of 6
Threaded View
-
01-25-2004, 04:24 PM #1Newbie
- Join Date
- Jan 2004
- Posts
- 27
Linux command/script to run a command for every file in a directory tree?
Is there a utility that'll do this, or an easy way to script one? There is an old DOS utility (GLOBAL.EXE) that would recursively run a given command on every file in a directory.
I'm trying to use the Unix command "zip" to inject a file into all zip files in a directory (and its subdirectories). The command to do this for one file is:
zip stuff.zip addfile.txt
- results in addfile.txt being added to the contents of stuff.zip. This is fine, but I need to inject "addfile.txt" into all zipfiles in the directory tree! Any pointers?