Visual Studio has a "Find All References" tool that is great in navigating the codebase to find out where a function is called or where a variable is used. When navigating a large code base, I tend to do find all references multiple times to find the top level of where a function is called.
Imagine we have the following:
A1() calls B1(...
Hi everyone..
Well i am really stuck at this one.
I have dirs.txt which is as follows:
/var/tmp/old files.txt
/var/tmp/old backups.bak
dirs.txt file is generated by the script itself.
When i want to use dirs.txt in a for loop like:
for dir in `cat dirs.txt` ; do
ls -al $dir
done
Here is what the command throws:
ls: cannot ac...
I'm looking for a VS2008 AddIn or utility that improves on "Find In Files".
The main feature I'm looking for is to show the names of the methods that contain the matching string, preferably in a TreeView.
For example, if I did a search for variable "string1", I'd like to see something similar to the following:
File1.cs
method1
...
Hi all!
This is my first post on Stack, so please bear with me if I breach any protocol.
I'm working on a project in Rails (2.1.2), and I have a relations scenario that looks like this:
event [has_many] days
People (in different categories) can sign up for event days, giving the following binding results:
category [has_many] custom...
To see all the php files that contain "abc" I can use this simple script:
find . -name "*php" -exec grep -l abc {} \;
I can omit the -l and i get extracted some part of the content instead of the filenames as results:
find . -name "*php" -exec grep abc {} \;
What I would like now is a version that does both at the same time, but on...
Sometimes I know a file is not so deep away, but a very dense sub-directory does not allow me to find the files I want easily.
Can find (or any other tool) look for files using breadth-first search?
...
I am searching for several thousand strings in a large directory tree which contains several thousand files. Each string can appear in many different files. What is the most performant way to perform this search in c#? I tried proccessinfo start with findstr (but it is painfully slow, because it opens every single file several thousand t...
What are some options for getting really fast 'Find in Files' searching in VIM?
Our codebase is large enough that searching needs to work off an index. grep/vimgrep/etc are too slow.
Indexing doesn't need to be particularly fast; I can index overnight.
Thanks,
[EDIT] I'm also working in a Windows environment.
...
I want to create a batch while which finds specific lines in a batch file and are able to edit these lines.
Example:
//TXT FILE//
ex1
ex2
ex3
ex4
i want to let the batch file find 'ex3' and edit this to 'ex5' to let it look like this:
ex1
ex2
ex5
ex4
...
Hi all.
Can I use Internet explorer's "find" to find a number (and go to the first result) in a webpage after I open a new IE window through ASP.NET?
Edit : Maybe I should clarify, I am opening a page on a site that is not mine, I cannot embed and run javascript on it...
Is this even possible?
Thanks
Roey
...
Using find . -print0 seems to be the only safe way of obtaining a list of files in bash due to the possibility of filenames containing spaces, newlines, quotation marks etc.
However, I'm having a hard time actually making find's output useful within bash or with other command line utilities. The only way I have managed to make use of th...
This question is based on the answer.
I run at home
find -- ./ Desktop
I understand the command as
find without parameters
at the current directory that is home (= /Users/masi/)
find the folder name Desktop at the current directory
How do you read the command?
...
I was trying to get a list of all python and html files in a directory with the command find Documents -name "*.{py,html}".
Then along came the man page:
Braces within the pattern (‘{}’) are not considered to be special (that is, find . -name 'foo{1,2}' matches a file named foo{1,2}, not the files foo1 and foo2.
As this is part of...
For instance, I have a large filesystem that is filling up faster than I expected. So I look for what's being added:
find /rapidly_shrinking_drive/ -type f -mtime -1 -ls | less
And I find, well, lots of stuff. Thousands of files of six-seven types. I can single out a type and count them:
find /rapidly_shrinking_drive/ -name "*offende...
I'm trying to use string.find in Lua to parse the contents of a user-entered string. There are up to three different parameters I am trying to find (if the user enters them), but sometimes only one.
The input string in its longer form looks like:
local userInput = "x|y|z"
where x, y, and z can be any character or nothing (empty str...
How do I tell cscope to ignore symbolic links when it is recursively traversing a directory to index source code files?
I do something like this:
find . \( -name "*".hh -or -name "*".h -or -name "*".hxx -or -name "*".H -or -name "*".C -or -name "*".cxx -or -name "*".c -or -name "*".cc \) -type f -print > cscope.files
cscope -qb
Ther...
I know this seems like a dumb question but how do i search a lua table for a given item? let's say i have a table like this:
local table = {
itemA = 0.8,
itemB = 1.2,
itemC = 1
}
is there, say, a function named table.find or something? It's also late here so I'm not thinking too clearly at the moment...
...
Hey,
I'm grabbing a window handle with the following code:
HWND hwnd = FindWindow(L"QWidget", NULL);
and it returns a HWND to a QWidget (I checked with Spy++, the handles match).
But after this, if I try the following:
QWidget* widget = QWidget::find(hwnd);
or
QWidget* widget = QWidget::find((WId)hwnd);
widget is always 0. Does ...
Hello,
i'm creating a batch file and just a little thing i want to know:
my (WINDOWS) batch file needs to search 'hello' in a text file.
If it is there, it should use the GOTO command to somewhere else in the batch file.
If it isn't there, it should write 'hello' on a new line.
How can you do that?
I know that you can use FIND and ...
How can I find things created "Jul 30 04:37" and move them to /tmp? Something wrong:
find . -ctime "0037043007" -exec mv {} /tmp +
...