How to search text contents within a file in Windows 8 using FIND or FINDSTR or other tools

We have a series of text files with non-text character, but it's still a text file.  By non-text character we mean ─  ┼  ┴  █  ┐└  █  ═.

We need to search them and find specific values.  We want it to display each line that it appears.  We tried FIND and FINDSTR but to no avail.  For some reason it display only one occurrence.  We tried the arguments of each, but can't seem to make it display the reality.  Yes if we have a regular ascii file, FIND and FINDSTR works as we want.

So, we have included an example of the text file.  You will noticed that it has 3 "CUSTFILE.tax" 5 times.  Yet it never display results.

We also downloaded 'SearchMyFiles' from http://www.nirsoft.net, but it only display one line.

Please advice where are we faulting or any other simple tool that you can recommended.

We have uploaded a second text file p2.txt.  When running FIND and FINDSTR, only the last custfile.tax is displayed (we don't know why).
p.txt
p2.txt
rayluvsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITCommented:
I'm not following you. When I do
find "CUSTFILE.tax" p.txt

Open in new window

...it shows:

---------- P.TXT
CUSTFILE.tax  (1rst appearance)
CUSTFILE.tax  (2nd  appearance)
CUSTFILE.tax  (3rd  appearance)
CUSTFILE.tax  (4th  appearance)
CUSTFILE.tax  (5th  appearance)

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rayluvsAuthor Commented:
That is exactly what we have... Ok, let me check
0
rayluvsAuthor Commented:
Yes you are correct.  Strange, the files we uploaded is an extract of large text files.  Some files has 25 occurrence and some files has 10 or less, but the result is always the same; is lower than what actually is.  We thought it was the special characters  ─  ┼  ═  ┴  █  ┐└ , but it seems not.

Ok lets see how we can reduce the size and contents so we can upload it.

By the way, what could cause FIND and FINDSTR to NOT display all occurrences of the search criteria?
0
DansDadUKCommented:
>> ... the special characters  ─  ┼  ═  ┴  █  ┐└   ...

That rather depends on which coded character set you are assuming.

Most (all?) of the non-ASCII characters in the files are within the 'extended-ASCII' code-point range; for example, within the p2.txt file, and assuming use of the Windows Latin-1 (CP 1252) coded character set:

hex and character (CP-1252) display of part of p2.txt file
... or assuming use of Code Page 437:

hex and character (CP-437) display of part of p2.txt file
0
rayluvsAuthor Commented:
Sorry for the delay, been super sick but back to work!

As for this question, for some reason it seem to work FIND and FINDSTR.

So we will proceed to close the question and award accordingly,

Thanx for your patience.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.