How to search directory for specific files?
Let’s learn how to search directory for specific files. The most accurate or helpful solution is served by Stack Overflow.
There are ten answers to this question.
Best solution
I'm trying to write a set of TCL scripts that helps setup a user's environment for a set of libraries that are not in their standard LD_LIBRARY_PATH as part of a support solution. Since the system is rather sparse in terms of what I can install, I don't really have access to any TCL extensions and am trying to do this in base TCL as much as possible. I'm also relatively new to TCL as a language. What I'd like to do is search through a directory structure and locate the directories that have .so...
Answer:
Tcllib has a fileutil module that does a recursive find: package require fileutil set filenames [::fileutil...
stareja at Stack Overflow Mark as irrelevant Undo
Other solutions
I want to search word in all the files of a directory and list the files which contain that word. Which linux command will be helpful ?
Answer:
grep -w -l <searchword> <pathofdirectory> the -w option forces grep to exactly match...
Sundeep Agarwal at Quora Mark as irrelevant Undo
Answer:
The program below will search all non-directory files in the starting directory. If you want to search...
wiki.answers.com Mark as irrelevant Undo
Answer:
The traditional answer is the one already given with find and sed. This replaces "foo" with...
Joshua Levy at Quora Mark as irrelevant Undo
community wiki at wiki.answers.com Mark as irrelevant Undo
Answer:
Different operating systems may have very different tools. On Linux and Unix-like systems, 'grep computers...
community wiki at wiki.answers.com Mark as irrelevant Undo
Answer:
Unix really doesn't use file extensions, but if you want to look for them recursively, then use: ls...
community wiki at wiki.answers.com Mark as irrelevant Undo
Answer:
I use the locate command. Locate just queries a database and prints out the location of the file as...
wiki.answers.com Mark as irrelevant Undo
Hi, I have a code, which is searching through all hard drives for the specific file. It has only two functions. Function SearchFileRecursivw has a place where I specify the path for my file under comment "Main Loop". My problem...
Answer:
Hi rbrian2-ga, Here is what I understand of how your code is working : You have two global variables...
rbrian2-ga at Google Answers Mark as irrelevant Undo
I want to recurse through a directory tree and search-and-replace some terms in Excel/Word files.
Answer:
There's a nice freeware Macro to do this with Office. http://www.funduc.com/word_sr.htm. Word Search...
Miguel Esquirol at Quora Mark as irrelevant Undo
Related Q & A:
- How to link inside a specific jquery tab?Best solution by Stack Overflow
- How to search double quotes in fulltext search in sql?Best solution by Database Administrators
- How to read file from specific word in php?Best solution by Stack Overflow
- How do you install a specific version of Node.js?Best solution by Ask Ubuntu
- How do I change .3gp video files to other video files, so I can open it up in Windows?Best solution by helpdeskgeek.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.