• Searching sub-directories with Caja

    From Richard Owlett@rowlett@access.net to alt.os.linux.debian on Mon Apr 15 05:42:53 2024
    From Newsgroup: alt.os.linux.debian

    I've forgotten how to search all sub-directories of current directory
    for files with a specific extension.

    Help please.
    TIA
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Siard@xx@xx.invalid to alt.os.linux.debian on Mon Apr 15 13:13:17 2024
    From Newsgroup: alt.os.linux.debian

    On Mon, 15 Apr 2024 05:42:53 -0500, Richard Owlett wrote:
    I've forgotten how to search all sub-directories of current directory
    for files with a specific extension.

    In Caja, search for .ext , not *.ext , with 'Location' set to the current directory.

    On the command line, it's find root_path -name '*.ext'
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Richard Owlett@rowlett@access.net to alt.os.linux.debian on Mon Apr 15 07:02:47 2024
    From Newsgroup: alt.os.linux.debian

    On 04/15/2024 06:13 AM, Siard wrote:
    On Mon, 15 Apr 2024 05:42:53 -0500, Richard Owlett wrote:
    I've forgotten how to search all sub-directories of current directory
    for files with a specific extension.

    In Caja, search for .ext , not *.ext , with 'Location' set to the current directory.

    On the command line, it's find root_path -name '*.ext'


    *ROFL* Thank you. I was using the asterisk.

    For my current problem the command line will be more suitable.

    I was asking my system the "wrong" question.
    IOW I was asking for all files with a specific extension.

    What I really need to ask is "Which directory or sub-directory has one
    or more files with a specific extension?"

    I see a session carefully reading the man page for "find" ;}
    Is there another command I should investigate?

    Thanks again.


    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Siard@xx@xx.invalid to alt.os.linux.debian on Mon Apr 15 14:37:08 2024
    From Newsgroup: alt.os.linux.debian

    On Mon, 15 Apr 2024 07:02:47 -0500, Richard Owlett wrote:
    What I really need to ask is "Which directory or sub-directory has one
    or more files with a specific extension?"

    find dirname -type f -iname '*.ext' -printf '%h\n' | sort | uniq -cd

    I found this here, first of the 4 answers: https://superuser.com/questions/899347/find-directories-that-contain-more-than-one-file-of-the-same-extension
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Richard Owlett@rowlett@access.net to alt.os.linux.debian on Mon Apr 15 08:29:30 2024
    From Newsgroup: alt.os.linux.debian

    On 04/15/2024 07:37 AM, Siard wrote:
    On Mon, 15 Apr 2024 07:02:47 -0500, Richard Owlett wrote:
    What I really need to ask is "Which directory or sub-directory has one
    or more files with a specific extension?"

    find dirname -type f -iname '*.ext' -printf '%h\n' | sort | uniq -cd

    For my current need
    > find dirname -type f -iname '*.ext'
    worked very nicely.
    That it gave many more hits than expected pointed out a problem with my directory tree structure ;}



    I found this here, first of the 4 answers: https://superuser.com/questions/899347/find-directories-that-contain-more-than-one-file-of-the-same-extension


    I think exploring that thread as well as the close reading of find's
    manpage will be valuable.

    Although I didn't use
    > -printf '%h\n' | sort | uniq -cd
    this time, it appears worth exploring.

    Thanks yet again.




    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Siard@xx@xx.invalid to alt.os.linux.debian on Mon Apr 15 15:47:46 2024
    From Newsgroup: alt.os.linux.debian

    On Mon, 15 Apr 2024 08:29:30 -0500, Richard Owlett wrote:
    I think exploring that thread as well as the close reading of find's
    manpage will be valuable.

    Do you know cheat.sh ? www.linuxlinks.com/excellent-utilities-cheat-sh-community-driven-cheat-sheet/

    The examples given by

    $ curl cheat.sh/find

    are easier to follow than the manpage.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From songbird@songbird@anthive.com to alt.os.linux.debian on Mon Apr 15 07:04:26 2024
    From Newsgroup: alt.os.linux.debian

    Richard Owlett wrote:
    I've forgotten how to search all sub-directories of current directory
    for files with a specific extension.

    Help please.
    TIA


    i don't use caja. and pulling it up i don't see a way
    where it let's you search sub directories.


    find will do it.

    $ find . -print | egrep "*.bmp$"


    songbird
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Siard@xx@xx.invalid to alt.os.linux.debian on Mon Apr 15 19:12:30 2024
    From Newsgroup: alt.os.linux.debian

    songbird wrote:
    i don't use caja. and pulling it up i don't see a way
    where it let's you search sub directories.

    I do. Go > Search for Files...
    Do a search and in the 'Search results' you can set the 'Location' to any directory. Its sub directories will be searched as well.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Richard Owlett@rowlett@access.net to alt.os.linux.debian on Tue Apr 16 06:06:59 2024
    From Newsgroup: alt.os.linux.debian

    On 04/15/2024 08:47 AM, Siard wrote:
    On Mon, 15 Apr 2024 08:29:30 -0500, Richard Owlett wrote:
    I think exploring that thread as well as the close reading of find's
    manpage will be valuable.

    Do you know cheat.sh ? www.linuxlinks.com/excellent-utilities-cheat-sh-community-driven-cheat-sheet/

    *ALL* of www.linuxlinks.com is effectively UNUSABLE.
    I'm a tri-focal wearing senior citizen.
    To have READABLE text I have to set a minimum font size of 18 pixels in
    MATE's Preferences->Appearance->Fonts

    [Icons for links get superimposed on content's text]


    The examples given by

    $ curl cheat.sh/find

    are easier to follow than the manpage.


    Yes, examples can be valuable.
    But I like to know what's supposed to happen.
    Been reading spec sheets for decades -its addictive ;}



    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Siard@xx@xx.invalid to alt.os.linux.debian on Tue Apr 16 13:34:34 2024
    From Newsgroup: alt.os.linux.debian

    Richard Owlett wrote:
    *ALL* of www.linuxlinks.com is effectively UNUSABLE.
    I'm a tri-focal wearing senior citizen.
    To have READABLE text I have to set a minimum font size of 18 pixels
    in MATE's Preferences->Appearance->Fonts

    In the browser, can't you enlarge the text with Ctrl-+ ?
    And in the browser's settings, you can set the 'default zoom' to e.g.
    150% or 200%.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Richard Owlett@rowlett@access.net to alt.os.linux.debian on Tue Apr 16 07:48:18 2024
    From Newsgroup: alt.os.linux.debian

    On 04/16/2024 06:34 AM, Siard wrote:
    Richard Owlett wrote:
    *ALL* of www.linuxlinks.com is effectively UNUSABLE.
    I'm a tri-focal wearing senior citizen.
    To have READABLE text I have to set a minimum font size of 18 pixels
    in MATE's Preferences->Appearance->Fonts

    In the browser, can't you enlarge the text with Ctrl-+ ?

    Not a workable "solution":
    1. MATE's Preferences->Appearance->Fonts sets size for email/news also
    2. Using Ctrl-+, the text gets superimposed on link icons when
    becoming readable.

    And in the browser's settings, you can set the 'default zoom' to e.g.
    150% or 200%.

    Your user-agent string says you aren't using SeaMonkey ;/




    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Peter 'Shaggy' Haywood@phaywood@alphalink.com.au to alt.os.linux.debian on Mon Apr 22 17:23:26 2024
    From Newsgroup: alt.os.linux.debian

    Sorry for taking so long to follow up!

    Groovy hepcat songbird was jivin' in alt.os.linux.debian on Mon, 15 Apr
    2024 09:04 pm. It's a cool scene! Dig it.

    Richard Owlett wrote:
    I've forgotten how to search all sub-directories of current directory
    for files with a specific extension.

    i don't use caja. and pulling it up i don't see a way
    where it let's you search sub directories.

    find will do it.

    $ find . -print | egrep "*.bmp$"

    Or forget about egrep and just use find alone, like this:

    find ./ -name \*.bmp

    Or use -iname instead of -name for a case insensitive search.
    --


    ----- Dig the NEW and IMPROVED news sig!! -----


    -------------- Shaggy was here! ---------------
    Ain't I'm a dawg!!
    --- Synchronet 3.21d-Linux NewsLink 1.2