Originally Posted by 9to5cynic
I'm going to finally have to learn sed and awk one of these days...
Regular expressions are the answer to this without a doubt, and to learn sed and awk you need to know regular expressions.
It's been a while since I've written a script for 7za so the examples that I have may not be up to date. If not too much has changed, you should be able to pipe the output of something like `find' into 7za on the same command line. Something like :
find (args) | 7za a -t7z -mx=9 -mmt=on myfile.7z -
will pipe the stdout of find into stdin of 7za, eliminating the need for an intermediate file. Although I'm really rusty on find, I know it can do what you want because I've seen people do it that way.
Now let me see if my O'Reilly "Regular Expressions" book is reachable...