Computing.Net > Forums > Programming > Batch [Search file string + custom]

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch [Search file string + custom]

Reply to Message Icon

Name: user1234
Date: September 9, 2008 at 12:26:35 Pacific
OS: Windows XP
CPU/Ram: 1GB
Product: HP Compaq
Comment:

Hello everyone,
I apologize if this is repeated but I couldn't find it anywhere.

Here's my problem:
I have a code.txt file that contains 1200 lines of code. I have another findthis.txt file that contains names (including spaces) separated by line. Code.txt also contains names from findthis.txt in a function call.

So let's say "Allow Me" is in findthis.txt and gets called in code.txt by Show "Allow Me". I want to find out which names in findthis.txt does not get referenced in code.txt after the Show " ... code.

I am stumped and really appreciate any help.



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: September 10, 2008 at 06:57:57 Pacific
Reply:

show example findthis.txt and code.txt. describe the output that you want to see


0

Response Number 2
Name: user1234
Date: September 10, 2008 at 07:09:54 Pacific
Reply:

Thanks for replying.

Here's a sample:

findthis.txt
===============
Test Function 1
Test Function 2
Test Function 3
...
__________________________
code.txt
========
Script blah blah ...
Show Test Function 1
Script calls something else
Show Test Function 2
...
___________________________

Essentially, I want to find out which functions from findthis.txt do not get called by Show "..." command in code.txt (Function names in findthis.txt include spaces and are only separated by lines)

Thanks for your help!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch [Search file string + custom]

Batch File To search file extension www.computing.net/answers/programming/batch-file-to-search-file-extension/18286.html

Perl: Searching a String www.computing.net/answers/programming/perl-searching-a-string/3499.html

how to create a batch 837 file www.computing.net/answers/programming/how-to-create-a-batch-837-file/15547.html