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



7stud
Enthusiast

Jan 29, 2013, 9:22 AM


Views: 1786
Re: [panicz] Wrapper around the UNIX find | xargs grep

How does your Scheme program handle the two problems I mentioned in 1) above, i.e.:

a) Multiple search terms that each contain multiple words, e.g.:

for hello world goodbye mars

b) A list of filenames like:

in 1.txt 2.txt or 1.pl 2.pl

Note the 'or' in there. If you allow multiple words after an or, then what happens when you parse this:

in 1.txt or 2.txt for hello

Won't 2.txt and 'for' (as well as 'hello') all be parsed as filenames?


(This post was edited by 7stud on Jan 29, 2013, 9:29 AM)


Edit Log:
Post edited by 7stud (Enthusiast) on Jan 29, 2013, 9:23 AM
Post edited by 7stud (Enthusiast) on Jan 29, 2013, 9:26 AM
Post edited by 7stud (Enthusiast) on Jan 29, 2013, 9:29 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