Search for "A word or phrase in the file" in .trc files gives no result
Hi
When i Search through Explorer using search for "A word or phrase in the file" in .trc files I get no result.
Probably because these files are of type "Microsoft Network Monitor Document".
But I can open them using Notepad, so why can't I search for a word in these files?
I there another way to search?
Normally I ofcourse use Visual Admin. but there are a lot of trace files so it would be nice to do this kind of search
br Peter
Hi Peter,
This is a known problem, see http://support.microsoft.com/kb/309173
An alternative is to use other tools which search even faster than the slow MS search does.
Hope it helps
Detlev
Similar Messages
-
Searching for a word or phrase in a file on NSS Pool/Volume
I have encountered a strange issue in that if I search for a word or phrase in a file at any level of the volume, from the root, down to sub folders, I get different results from 2 or more PC's.
Workstations are all Win XP SP2, Novell Client 4.91 SP4 for Windows
Server NW 6.5 SP6 with all post SP's installed.
I have ran a nss /PoolRebuild=POOLNAME and a NSS /VisibilityRebuild=VOLNAME
There is only one volume on this pool.
And I still encounter the same results.
As one example:
On my Admin workstation When I search the top level Folder of Closed Client folders for the word chronology, I get 2 files returned named chronfile1 and chonfile2, when I search from any other workstation (I have tried 4 different workstations at this point) at the same folder level, for the same word Chronology, I get multiple files with the Word in the File, but I do not see files chronfile1 or chronfile2. Likewise, the file names returned form the search results on the other workstations, are not returned in the search list ran on the admin (Mine) workstation. And yes, I am logged in as admin on the other workstations when running the search.
So far, this issue is only appearing on 1 volume.
Thoughts?Originally Posted by ataubman
If you log in to the second PC as Admin, does the symptom move? IOW does it follow the user or the workstation? If the user you may have some odd file system rights set, although your specific results you report are puzzling.
I'm assuming you are using the Windows desktop search tool?
I ran a NSS /PoolRebuild last night which fixed an issue the workstations not being able to see the 2 files in question.
Previous night I had just performed an NSS /PoolVerify.
Part of the other anomoly, the other workstations seeing more files than the admin workstation (I feel so Stupid, after 25 years you think I'd be able to spot the obvious) the reason the other workstations were returning files that the Admin workstation was not - Admin workstation doesn't have Word Perfect installed.
Somebody, give me a Gibbs head slap, now! -
Search for a word and return all the lines (row) from the text file..
Hi all,
I need a help on how to search a string from the text file and returns all the lines (rows) where the searched string are found. I have included the code, it finds the indexof the string but it does not return the entire line. I would appreciate your any help.
public class SearchWord
public static void main(String[] args){
//Search String
String searchText = "man";
//File to search (in same directory as .class file)
String fileName = "C:\\Workspace\\MyFile.txt";
//StringBuilder allows to create a string by concatinating
//multiple strings efficiently.
StringBuilder sb =
new StringBuilder();
try {
//Create the buffered input stream, which reads
//from a file input stream
BufferedInputStream bIn =
new BufferedInputStream(
new FileInputStream(fileName));
//Holds the position of the last byte we have read
int pos = 0;
//Holds #of available bytes in our stream
//(which is the file)
int avl = bIn.available();
//Read as long as we have something
while ( avl != 0 ) {
//Holds the bytes which we read
byte[] buffer = new byte[avl];
//Read from the file to the buffer
// starting from <pos>, <avl> bytes.
bIn.read(buffer, pos, avl);
//Update the last read byte position
pos += avl;
//Create a new string from byte[] we read
String strTemp =
new String(buffer);
//Append the string to the string builder
sb.append(strTemp);
//Get the next available set of bytes
avl = bIn.available();
catch(IOException ex) {
ex.printStackTrace();
//Get the concatinated string from string builder
String fileText = sb.toString();
int indexVal = fileText.indexOf(searchText);
//Displays the index location in the file for a given text.
// -1 if not found
if (indexVal == -1)
System.out.println("No values found");
else
System.out.println("Search for: " + searchText); }
}Hi, you can use servlet class and use this method to get the whole line of searched string. You can override the HttpServlet to treat that class as servlet.
public class ReportAction extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//write your whole logic.
BufferedReader br = new BufferedReader(new FileReader("your file name"));
String line = "";
while(line = br.readLine() != null) {
if(line.contains("your search string")) {
System.out.println("The whole line, row is :"+line);
} -
Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc.
This is a new problem and was not the case before.Works perfectly fine for me with the latest Reader version (11.0.09).
You write that it worked "before"; before what? An update? Update from what version to what version? -
Wanted to ask if you knew of a script I could use or any other way to search a document for any words or phrases that appear in a specific list and highlight the word or phrase if it appears in the Pages doc. I'm using Word 2008 on a Mac. For instance, my list could contain the words 'solicitor' or 'lawyer' but also the phrase 'employment unfair dismissal'. My list has about 100 words and phrases that I need to search for in each Pages document. Ideally the script or other method would highlight in the Pages doc any of the words or phrases I am searching for. Thanks, Dave.
Hi,
No. My list looks like this:
Contact Law
Solicitor
Solicitors
Lawyer
Lawyers
Legal advice
Specialist solicitor
Specialist solicitors
Barrister
Barristers
Employment solicitor
Employment solicitors
Employment lawyer
Employment lawyers
Employment law
Employment law solicitor
Unfair dismissal
Unfair dismissal claims
Unfair dismissal claim
Unfair dismissal solicitor
Unfair dismissal solicitors
Claim for unfair dismissal
Claims for unfair dismissal
Constructive dismissal
Wrongful dismissal
Wrongful dismissal claim
Wrongful dismissal claims
No win no fee employment law
No win no fee employment lawyer
No win no fee employment lawyers
No-win, no-fee solicitor
Plus maybe another 60 words or phrases. What I want to do is take the above list and check these words or phrases for how many times they appear in a Pages document. I can see how you can use the search feature in Pages for single words, but you can't put multiple words or phrases into the search field.
Cheers,
Dave. -
I've been having this problem for awhile now. If I type a word while using firefox (in a form, searching a page for that word/phrase, etc.), Firefox will later (at a seemingly random time) do an automatic search for that word/phrase and redirect me to some site (e.g. if I search a page for 'history', Firefox will at a random time, redirect me to, for example, history.com). I have no idea what might be causing this, and it is really annoying when I'm filling out a form online and Firefox randomly goes to some site, interrupting what I was doing at the time.
Do you have that problem when running in the Firefox SafeMode? <br />
[http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
''Don't select anything right now, just use "Continue in SafeMode."''
If not, see this: <br />
[http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes] -
How do I search for adjacent words within MS WORD?
I am new to Mac. I need to search WITHIN MS Word Documents for specific phrases. Example: Jim is a good boy. Spotlight will find all documents containing those 5 words, but not those 5 words together. There has to be a way...
MacBook Mac OS X (10.4.8)First, thanks, I did. My naive take is that new plug-ins wouldn't be required.
Second - I don't know about Google finding every document, but it returns some pretty impressive results, and fast (so long as Google indexes the page in the first place of course). You've never used this feature? I do it all the time when I want to see if there's an internet version of a document I have in my hand.
Here's a random example the feature in action - I went to boingboing.net and snagged a phrase from the October archives: "You should give props to BabyStyle.com for the blue octopus costume". Here's the link to the October page:
http://boingboing.net/200610_01archive.html
and here's the link to the successful Google search:
http://www.google.com/search?num=50&hl=en&lr=&safe=off&c2coff=1&client=firefox-a &rls=org.mozilla%3Aen-US%3Aofficial&q=%22Youshould+give+props+to+BabyStyle.com+for+the+blue+octopuscostume%22&btnG=Search
Pretty impressive - the internet is a big place!
Thirdly, there was a program written for OS 9 called "Gopher" that did just that. It was pretty handy. Come to think of it, it may have been written for System 8! It vanished from publication before there was even a web for it to be distributed on, and when I switched to OS X, it wasn't working well under 9. Of course outside of the personal computing realm, there are well known database programs like Lexis and Nexis that perform exact phrase searches on their databases, which are pretty extensive (at least as large as most document collections on most personal computers, I'd venture). In fact if you've never used those programs they have some pretty powerful functions, like searching for any occurrence of a word within so many words of a second target word.
I'll give you a couple of examples of where phrase searching might come in handy. Suppose I have a collection of e-mails or correspondence (I guess we all do) and I want to find the one in which I facetiously repeated the punchline to the chicken joke - "to get to the other side". (You have to grant I might have a reason for wanting this particular e-mail, okay?) Of course if I search on "get", "other" and "side" I may wind up with four or five hundred results; those are pretty common words. That doesn't help me much. A phrase search,however, will yield, I dunno, three or four documents. Bingo.
Or, here. I work in an office creating documents all day long. I've been working in this office, on PCs, for 16 years. That's a lot of documents. I may create three dozen or more on a single subject. The documents are all on the same subject and all pretty much have the same words in them. Maybe I've got a single paragraph printed from one of them and want to find the source document. A simple word search will yield back 80% of the lot. A phrase search typed in from the paragraph is almost certainly unique, however, and will give me my document in a blink.
(Um, I'd have to move all the documents to a Macintosh to do this, but you get the point I hope.)
Spotlight says it finds "anything anywhere" on your computer. I would use a feature like this *all the time*. Why shouldn't it be able to do it? -
How do I search for a word through multiple files in my directories ??
Hello everyone
How do I search for a word through multiple files in my directories ??
I am guessing one tedious way to do it would be to pass all the file names as command line arguments but I"m sure there exist a much easier and faster way to do it.
Thanks a lotYou need to pass only the directory name as parameter and then retrieve the files(recursively throug subdirs or not, however you wish) of that directory.
There were at least 2 threads yesterday on how to retrieve files from directory, and there are many others in the archive so I leave the search part to you ;)
HTH
Mike -
Tell me Logic for search for duplicate words(or strings) in a large file.
Search for duplicate words (or strings) in a text file containing one word per line. For each word that occurs more than once in the flat file output should be as follows
<word> <number of occurrences> <line numbers in the file where the word occurs>
For example, if the word Hello occurs thrice in a file at lines 100, 178 and 3456 the output should read
Hello, 3, [100, 178, 3456]Incidentally i wrote similar code some days back. You need to do some modifications to get the exact output you want, but i hope it will be of some help.
One more thing its written using JAVA5
public class Test
private static final String COLLECTIONS_TEXT = "C:\\Documents and Settings\\amrainder\\Desktop\\Collections.txt";
public static void main(String[] args) throws IOException
findDuplicateWords();
private static void findDuplicateWords() throws IOException
Collection<String> words = new LinkedHashSet<String>();
File file = new File(COLLECTIONS_TEXT);
StreamTokenizer streamTokenizer = new StreamTokenizer(new FileReader(file));
int token = streamTokenizer.nextToken();
while(token != StreamTokenizer.TT_EOF)
if(token == StreamTokenizer.TT_WORD)
words.add(streamTokenizer.sval);
token = streamTokenizer.nextToken();
System.out.println(words);
}Cheers,
Amrainder -
How to search for a word in a text editor
Hi,
I have created a custom container and added some text to it. Is there any method to search for words in this?Lilan,
To search a character field for a particular pattern, use the SEARCH statement as follows:
SEARCH <c> FOR <str> <options>.
The statement searches the field <c> for <str> starting at position <n1>. If successful, the return code value of SY-SUBRC is set to 0 and SY-FDPOS is set to the offset of the string in the field <c>. Otherwise, SY-SUBRC is set to 4.
The search string <str> can have one of the following forms.
<str>
Function
<pattern>
Searches for <pattern> (any sequence of characters). Trailing blanks are ignored.
.<pattern>.
Searches for <pattern>. Trailing blanks are not ignored.
*<pattern>
A word ending with <pattern> is sought.
<pattern>*
Searches for a word starting with <pattern>.
Words are separated by blanks, commas, periods, semicolons, colons, question marks, exclamation marks, parentheses, slashes, plus signs, and equal signs.
<option> in the SEARCH FOR statement can be any of the following:
ABBREVIATED
Searches the field <c> for a word containing the string in <str>. The characters can be separated by other characters. The first letter of the word and the string <str> must be the same.
STARTING AT <n1>
Searches the field <c> for <str> starting at position <n1>. The result SY-FDPOS refers to the offset relative to <n1> and not to the start of the field.
ENDING AT <n2>
Searches the field <c> for <str> up to position <n2>.
AND MARK
If the search string is found, all the characters in the search string (and all the characters in between when using ABBREVIATED) are converted to upper case.
Pls. Mark -
Search for more words one time
Goodmorning, as long someone could help me with the other issue http://forums.adobe.com/thread/1057325?tstart=0 I have another question for you.
I need to search for a specific list of words but I want to search only one time... So for example if I'm searching 3 different words HELLO - GOODBYE - CIAO I want that acrobat perform the searches in the same time and let me see how many times the words are repeated.
I try with the advanced search but I can only search one word at time... I see there is a command under tools>protection>find and remove text (hope I have translate right from Italian software) to search for different words in the same time but the problem is that it can't report how many times thw words are repeated. As you see I need a mix of the two tools
Do you have some suggestions?
Hope to read you soon. Thanks,
Luca
PS: I know I can do that with the boolean expression but in this way acrobat doesn't separate the rusults.It will work with any of the smart album criteria - file menu ==> new smart album
The easiest way to see is to take a look at what is available there - and make a smart album or two - if you don't like them just drag them to the iPhoto trash and do another one
LN -
Will not search for a word in pdf file. Using Windows 7
Like most I have used Acrobat reader for viewing PDF files for years. I recently upgraded to Windows 7 from XP. I have tried to search a PDF file for a word and it always comes up with none found even though I search for a word that is displayed in the document I'm looking at. Any advice?
Regards,
DwightIf the PDF is not a scanned image, can you share it with us: https://forums.adobe.com/thread/1070933
-
Search for multiple words in a field?
is there a way to search for multiple words in a field? for example, if i have a metadata field called NOTES that contains the string "Joe and Bob created this version on Sunday" is there a way to search for "Sunday, Joe, Bob" and have it return the asset?
Search using the "Matches Word" option instead of "Contains". That will limit your results to only assets that have a field value that includes all three of those terms. If they are not all included in the same field value, it will not return a hit. So if "Sunday" were in Keywords and "Joe" & "Bob" are in Notes, you would not get a hit for that search with "Matches Word".
"Contains" searches for the contiguous string in any field on the assets.
Further, if you add your Notes field to the Metadata Group "Asset Filter", it will appear in your advanced search options, asset subscription filters, and search expired responses. Then you can specifically limit the search to that field and choose from "Matches Word', "Contains", and several other search filters. Note that when you use "Matches Word" this way, you need to eliminate spaces from your comma delimited list of words or you will not get the search hits you want. -
Search for a word in a sentence
hi,
Is there a function module which can search for a word in a sentence or string?
thanks,
rakshaIf String1 CP 'CNF# ' or String1 CP '# CNF' or String1 CP '*# CNF# *'.
flag = 'True'.
endif.
CP (Contains Pattern):
The complete string string1 matches the pattern.
The pattern can contain ordinary characters and wildcards.
'*' stands for any character string and '+' denotes any character.
'ABCDE' CP 'CD' is true;
'ABCDE' CP '*CD' is false;
'ABCDE' CP '+CD' is true;
'ABCDE' CP '+CD*' is false;
'ABCDE' CP 'BD*' is true;
The character '#' has a special meaning. It serves as an escape symbol and indicates that the very next character should be compared "exactly". -
Search for a word in a string.
Hello everybody,
Could anybody help me how to search for a word in a string ?
Example: I have a string as below:
String[] weather = {"snow", "rain", "sunny", "temperature", "storm", "freezing"};
And I have a sentence like this:
"Today is a sunny day"
I want to break this sentence to pickup the word "sunny" and search this word in String[] weather to see if they match. How could i do that?
Thank you very much. I really appreciate.
still_learn1 iterate through the strings in your array.
2. use String.indexOf(...) to test if the query string is present in the string
Maybe you are looking for
-
I never used Time Machine before. I was storing select files on my external hard drive as well as using my libraries (IPhoto, ITune, IMovies) directly off of the external hard drive. That hard drive is giving me problems, so I bought a new one. I
-
Cannot delete reports, unless I close and open Eclipse/Tomcat
Please can someone help me. I cannot delete reports. I have not worked out all the details yet but this is what I got so far... First I thought it was a problem with my tomcat setup, I would deploy my WAR and run the app. After viewing the report and
-
Hi My exp parfile looks like the following and I did export as user "abc" buffer=3145728 direct=y compress=n consistent=y constraints=y feedback=1000000 file=a.dmp grants=y indexes=y log=a.log owner=abc recordlength=65535 rows=n And import parfile lo
-
Ipad mini safari display size issues
I created help documentation for an iPad app. The help opens in Safari and it works fine. So, now we support the iPad Mini, but when we open the help in Safari on the Mini, the sizing is messed up. Also, I am told that the links do not go to the corr
-
I am having flickering issues on both my timeline and when i render a clip when i drop and adjust a three way color corrector on a clip