cyprus106
Programmer
- Apr 30, 2001
- 654
I've only got a basic working knowledge of unix shell scripts, so I'm still struggling to get a little more advanced functionality into my sh here...
I'm running a for statement to grab every .tgz file in a particular directory, then I unzip them, one by one, and run the program inside. So I Unzip the tar, run the prog, run a different program, diff the results, then go to the next tar. I don't know how to dynamically grab each program, though. I can't just sed or something for a file name, that I know of, because inside the tar is a qamake.sh, testN.sh, testN.cln, testN.diff... Can anybody tell me how to dynamically grab my shell scripts? I can post my code if necessary. Thanks a lot in advance!
Cyprus
I'm running a for statement to grab every .tgz file in a particular directory, then I unzip them, one by one, and run the program inside. So I Unzip the tar, run the prog, run a different program, diff the results, then go to the next tar. I don't know how to dynamically grab each program, though. I can't just sed or something for a file name, that I know of, because inside the tar is a qamake.sh, testN.sh, testN.cln, testN.diff... Can anybody tell me how to dynamically grab my shell scripts? I can post my code if necessary. Thanks a lot in advance!
Cyprus