[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: An appropriate directory search tool?




Den 20. okt. 2018 21:05, skrev Brian:
> On Sat 20 Oct 2018 at 07:19:50 -0500, Richard Owlett wrote:
>
>> On 10/20/2018 06:37 AM, Joe wrote:
>>> On Sat, 20 Oct 2018 05:28:52 -0500
>>> Richard Owlett <rowlett@cloud85.net> wrote:
>>>
>>>> On 10/20/2018 04:44 AM, tomas@tuxteam.de wrote:
>>>>> On Sat, Oct 20, 2018 at 04:32:43AM -0500, Richard Owlett wrote:
>>>>>> I think my original post needs a rewrite ;/
>>>>>>
>>>>>> I'm looking for a directory search tool with specific capabilities
>>>>>> which would fit comfortably with my work environment.
>>>>> [...]
>>>>>> I suspect that what I want would most likely be a command line
>>>>>> tool. Perhaps a script will be required. But, before reinventing
>>>>>> the wheel, I ask "Does an appropriate command already exist?"
>>>>> [...]
>>>>>
>>>>> Judging by your (second) post, I get the feeling that the answers
>>>>> given in this list haven't reached you (at whatever level).
>>>> But they did.
>>>> That's why I wrote 'My take away from answers so far is "A script
>>>> will be required." '
>>>> Perhaps we have different ideas of the definition of "script".
>>>> I saw the examples which worked as scripts (even if written as one
>>>> liners). If I had attempted to use bash, I would have expected to use
>>>> an explicit pipe command between 'find' and 'grep'.
>>>>
>>> Have you looked at 'zenity' for (somewhat) graphicising scripts? Not
>>> quite the full GUI experience, but quick and dirty.
>>>
>>> https://www.linuxjournal.com/content/make-your-scripts-user-friendly-zenity
>>>
>> Had never heard of 'zenity'.
>> I browsed the text of the page. To read it as intended I'll have to use an
>> alternate profile -- it expects "features" I've explicitly disabled.
>>
>> I searched for 'zenity tutorials'. The first few I found encourage further
>> investigation.
> I'd stay awy from zenity if I were you. The same advice applies to yad.
> As for dialog - don't go near it. You will be a lot happier.
>
If you want some interacivity-support for your find, emacs (and most
other coding-editors I suppose) can run find and let you pick through
the results in an editing-buffer. In emacs it is M-x find-dired, which
lets you pick the directory under which to search, hit enter, and then
enter the search criteria for find, and hit enter. If you want grep with
that, you do M-x find-grep-dired, and input directory and search-string
to look for INSIDE the files found. When you hit enter after the
criteria, it will show the results in a buffer, an you can hit enter on
any of the results to open that file.


Reply to: