Results 1 to 3 of 3

Thread: How to list all *.ogg files in a very complex directory structure

  1. #1
    Join Date
    Dec 2008
    Location
    Montevideo, Uruguay
    Posts
    453

    Lightbulb How to list all *.ogg files in a very complex directory structure

    Hi,

    I have the following situation:

    Under my Music directory there is one _Clasificada (rated in english) and then a lot of mp3 and ogg music files. What I want is to find all ogg files and add into a file with ( > ogg_files.txt) but I don't find the way to list all that ogg files in my complex directory structure. And I want it to find them to convert all to mp3 because my new smartphone does not support ogg format.

    The structure is lije this:

    Rated/Theme/Artist/album/Files.

    So The question is, stand it in this directory:

    agunet@agunet:~/Music/_Clasificada>

    How can I find all ogg music files ?

    I hope you understand my question,

    regards

    agunet74
    agunet74

  2. #2
    Join Date
    Nov 2010
    Location
    Texas, USA
    Posts
    87

    Default Re: How to list all *.ogg files in a very complex directory structure

    Here is an example of finding all jpg and JPG files in the directory
    tree below "/home/larry/Pictures". Note the single quotes around
    the wildcard spec. See the man page for 'find' for more details.

    Code:
     find /home/larry/Pictures/ -iname '*.jpg'

  3. #3
    Join Date
    Dec 2008
    Location
    Montevideo, Uruguay
    Posts
    453

    Default Re: How to list all *.ogg files in a very complex directory structure

    Thanks a lot !! That works !!

    cheers
    agunet74

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •