CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [panicz] Wrapper around the UNIX find | xargs grep: Edit Log



BillKSmith
Veteran

Jan 28, 2013, 8:45 AM


Views: 876
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

Code
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)


Edit Log:
Post edited by BillKSmith (Veteran) on Jan 28, 2013, 8:53 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives