Jan 28, 2013, 8:45 AM
Sorry, I misunderstood the scope of your project. However, my point is still valid. If you use perl to parse your "clause", there is little reason to use shell commands to do the real work.
Re: [panicz] Wrapper around the UNIX find | xargs grep
I recommend that you consider changing the syntax of your "clause" to conform to the conventions of Getopt::Long. Using the module to do the parsing is then nearly trivial.
Edit: Add sample command
perl search.pl --from ~/ --for USER --in '*.php' '*.txt'
(This post was edited by BillKSmith on Jan 28, 2013, 8:53 AM)