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

  • Home
  • SEARCH
  • 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 6824823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:56:52+00:00 2026-05-26T21:56:52+00:00

I am asking for general opinions on how to find files quickly. One typical

  • 0

I am asking for general opinions on how to find files quickly.

One typical scenario is that I often need to grep some names from a PeopleNameFile.txt from Dir1. When I’m in a different directory, I am forced to grep the file with a long directory path. It would be nice to just do GREP “Warren Buffett” PeopleNameFile.txt.

BTW, I’m using Cygwin but I welcome any suggestions.

  • 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-26T21:56:53+00:00Added an answer on May 26, 2026 at 9:56 pm

    You can easily write a simple bash function in your ~/.bashrc:

    function grnm() {
         grep "$@" /path/to/peoplenamefile.txt
    }
    

    Then later on, at command line you can type:

    $ grnm "Warren Buffet"
    

    the nice thing is that you can actually include other grep parameters if you like as in:

    $ grnm -i "warren buffet"
    

    (The $ characters represent your shell prompt, not part of the command you type.)

    When you edit the .bashrc file FOR THE FIRST TIME you may have to source it in your existing open cygwin windows:

    $ source ~/.bashrc
    

    But if you open a new window you should not have to do that.

    Good luck, have fun

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, it may seem that I'm asking for subjective opinions, but that's not
After asking some general advice on shortest path algorithms ( 2D waypoint pathfinding: combinations
while studying some security things, there was a question that one can guess the
Humbly asking for help with (of course) IE. I have a div that is
I need to convert PDF pages to TIF files from within my app (or
Another question on StackOverflow is asking how this is done, but the general question
Prior to asking this question here, I have googled aroung. In general, people suggest
The reason I'm asking is that this post http://amix.dk/blog/post/19577 Indicates that Node.js 0.2.2 seems
In the course of asking about catching 'divide by 0' exception, I found that
This question is a general one, and I've already posted a version of it

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.