1
vote
1answer
43 views

Spotlight search with context?

I'd like to perform searches so that: 1) It can search in the text in a large number of pdf files. Specifically, I want to search within a directory with nested directories several layer deep, and ...
2
votes
1answer
116 views

Git Extensions shows results that don't match search filters as well as results that match

Git extensions when searching using different filters (for example, commit message) will show results with commit messages that don't contain my search string. This is really annoying is there any way ...
0
votes
1answer
640 views

how can I search for a string in a folder that has zip files also

I am trying to search a string in a folder "test". This folder has sub folders and zip files too. I want to search within this directory to find the match. I used zgrep '11:57' test zgrep '11:57' ...
0
votes
2answers
69 views

Multi level or progressive or incremental file search [closed]

I am looking for a GUI tool in Windows, where I can do search and pass the result to next search and continue. I know I can do this in command line by piping one search result to another, but I am ...
0
votes
1answer
102 views

How can I open a set of files in sublime based on their contents

I am trying to find all the files that contain a search term: grep -lir "Search" . and pipe that into sublime: grep -lir "Search" . | subl but all this does is open a single file in sublime ...
-1
votes
2answers
47 views

Unix - Searching for every file with a certain string in it

I am searching for every file within a root directory and want to search every subdirectory as well. I have tried grep -r "message" * but I am not sure that this searches every subdirectory, any ...
0
votes
1answer
52 views

Search files for regex and return which files contain matches

I searched everywhere but didn't find out how to return a file content that matches given words or a regex. cat /tmp/*.txt | grep "strings"
0
votes
4answers
2k views

How to combine find and grep to recursively search for str or str2 in *.html and *.php files from /home/smith/sourcecode?

How can i combine find and grep to search for str1 or str2, recursively, in all *.html and *.php files starting from a directory named /home/smith/source? The output only needs to list files (with ...
7
votes
3answers
6k views

grep for “term” and exclude “another term”

I am trying to build a grep search that searches for a term but exludes lines which have a second term. I wanted to use multiple -e "pattern" options but that has not worked. Here is an example of a ...
3
votes
3answers
183 views

grep recursively to look for occurrence of a word in a particular file

I know about grep -rin 'text' /path/to/direcotry But I dont want to look up in all the files . I just need to check for occurrence of 'text' in all files named wscript. How can that be done ?
1
vote
1answer
122 views

how to make 'ack' command print the filename that has found the result on every line

By default ack command prints the output in follwing way ack --jsp '</div>' a.jsp 5:</span></div> 10:</table></div> b.jsp 3:</div><div>xyz ...
3
votes
1answer
161 views

Faster grepping through lots of bulky text files

I have log files that are 500 mb each and there are 200 of such files. I need to grep certain patterns inside these files. But this takes up a lot of time! Is there a (open source) software that can ...
1
vote
3answers
165 views

Grep-like tool for all filetypes?

Is there a grep/ack/grin-like tool for all filetypes (including MS Office, PDF, etc)? I frequently find myself wanting to search a folder or an entire disk for strings inside files that are more than ...
0
votes
2answers
364 views

Search recursively for a string containing whitespaces

I want to search for "this table..." string under /home/myuser directory recursively, ie in all files under /home/myuser and in all directories and sub-directories under /home/myuser. /home/myuser ...
4
votes
3answers
417 views

Search text in list of files

I'm trying to execute double search within files and return file names. I'm using find ./ -iname '*txt' | xargs grep "searchtext" -sl to find file names with 'searchtext' in them. Command is ...
1
vote
1answer
415 views

Linux find and grep for files not match pattern

I'm trying to search the entire file system for specific text. This command does that but it gets hung up in certain directories like '/proc': find / -print0|xargs -0 grep whatever What I'd like ...
0
votes
2answers
3k views

Searching File Contents of Remote Server via FTP

I'm running OSX 10.7 and i'm looking for a way to search for a string in the contents of a file on a remote FTP server. I'd like to be able to run the search over ftp rather than having to download ...
7
votes
6answers
4k views

Using an index to make grep faster?

I find myself grepping the same codebase over and over. While it works great, each command takes about 10 seconds, so I am thinking about ways to make it faster. So can grep use some sort of index? I ...
0
votes
1answer
147 views

How do I search for multiple strings in any order across multiple lines?

I'm working in a large codebase and want to see where particular strings like "foo" and "bar" are used, within n lines of each other, in any file in that codebase. Ideally I'd use a built-in Unix ...
1
vote
4answers
9k views

Search with “grep” for folder names

When using grep you can search for a specific regex, but only inside of a file. Is there any way, I can search for a folder name?
3
votes
4answers
1k views

Search for and print only matched pattern

I have some huge xml text files. I need to write a script to find and print a specific tag only. I tried sed and grep but they both return the whole line. Using SunOS 5.x, so not all linux commands ...
0
votes
2answers
648 views

How do I search for a file where I know the name but not the location?

i want to search qdbase (the name of DB). i dont know where this file is lies.i want to use grep at my server. my server name is qa@qaubuntu and for root root@qaubuntu.. i'm searching this file using ...
7
votes
4answers
5k views

Command line tool to search phrases in large number of pdf files

I'm using Opensuse 10.3 and like to know command line tools to search phrases in large number of pdf files inside a directory. In Windows XP the Explorer search allows this but is too slow. Is there ...
0
votes
1answer
62 views

Searching Multiple Terms

I know that grep -E 'termA|termB' files allows me to search multiple files for termA OR termB. What I would like to do instead is search for termA AND termB. They do not have to be on the same line as ...
6
votes
4answers
8k views

Mac OS X search and replace tool with regular expression support

I'm looking for a regular expression based search/replace GUI tool that is able to handle multiple files/subdirectories, something like grepWin but for Mac OS X. PS. I'm aware of grep and I don't ...