Link to home
Start Free TrialLog in
Avatar of jana
janaFlag for United States of America

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jana

ASKER

That is exactly what we have... Ok, let me check
Avatar of jana

ASKER

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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jana

ASKER

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.