
BillKSmith
Veteran
Jan 28, 2013, 8:45 AM
Views: 4876
|
Re: [panicz] Wrapper around the UNIX find | xargs grep
|
|
|
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. 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' Good Luck, Bill
(This post was edited by BillKSmith on Jan 28, 2013, 8:53 AM)
|