Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3999704
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:41:30+00:00 2026-05-20T07:41:30+00:00

I primarily program in Linux, using tcsh shell. By default, my current directory is

  • 0

I primarily program in Linux, using tcsh shell. By default, my current directory is the root of my code base – I use “find” to locate whichever file I’m interested in modifying, and then once find shows up the location of the file, I can then edit/modify on Vim.

The problem is, due to the size of the code base, every time I ask find to show up the location of a file , it takes at least 4-5 seconds to complete the search, which are too short to be used for anything else !! So, since the rate is new files being added to the code base is very small, i’m looking for a way as follows:

1) Generate the list of all files in my code base

2) Have find look in only those locations/files to answer my query

I’ve seen how opening up files in cscope is lightning fast, as it stores the list of files previously. I’d like to use the same mechanism for find, just not from within the cscope window, but from the generic cmd line.

Any ideas ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:41:30+00:00Added an answer on May 20, 2026 at 7:41 am

    You could write a list of directories to a file and use them in your find command:

    $ find /path/to/src -type d > dirs
    $ find $(cat dirs) -type f -name "foo"
    

    Alternatively, write a list of files to a file and use grep on it. The list of files is more likely to change than the list of dirs though.

    $ find /path/to/src -type f > files
    $ vi $(grep foo files)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We primarily use an ASP.NET environment at work. Right now I'm building an application
I use Emacs primarily for coding Python but sometimes I use IDLE. Is there
As a primarily Windows developer, perhaps I'm missing something cultural in the Linux community,
I have a Java-program which communicates with a C++ program using a socket on
In my program, I read in a file using this statement: string[] allLines =
Despite primarily being a windows user, I am a huge fan of rsync. Now,
Being primarily a C++ developer the absence of RAII (Resource Acquisition Is Initialization) in
I am primarily a .NET developer, and in that sphere alone there are at
My background is primarily as a Java Developer, but lately I have been doing
I'm currently primarily a D programmer and am looking to add another language to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.