text search in txt file

2007-10-17 Thread Orlini, Robert
I have a cfexecute w/cffile that generates a text file after executing a DOS command. In the text file I would like to do a search for a string in the txt file for an IP for example of 192.12.12.10. Would I use another instance of cffile? Thanks as always. RO HWW Code: CFTRY cfexecute name

Re: text search in txt file

2007-10-17 Thread Ben Doom
Well, since you are already pulling it into a variable, you can just do a find() or refind() to locate your IP. Which you would use depends, in large part, on whether you are looking for a specific IP or IPs in general. --Ben Doom Orlini, Robert wrote: I have a cfexecute w/cffile that

Re: text search in txt file

2007-10-17 Thread Claude Schneegans
Would I use another instance of cffile? Yes, and a regexp to find all IP addresses. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks.

RE: text search in txt file

2007-10-17 Thread Orlini, Robert
thank you -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 10:27 AM To: CF-Talk Subject: Re: text search in txt file Would I use another instance of cffile? Yes, and a regexp to find all IP addresses

Re: text search in txt file

2007-10-17 Thread Jochem van Dieten
Orlini, Robert wrote: I have a cfexecute w/cffile that generates a text file after executing a DOS command. cfexecute name = c:\windows\system32\tracert.exe arguments=#url.hostname# outputFile = e:\tracetest2.txt timeout = 20 Not really about your question, but just something I find

RE: text search in txt file

2007-10-17 Thread Orlini, Robert
this is a program that will be used in-house only, but good point Jochem. -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 12:30 PM To: CF-Talk Subject: Re: text search in txt file Orlini, Robert wrote: I have a cfexecute w