Syntax to delete all .ogg files recursively [solved]

I'm wondering how to go about recursively deleting all .ogg files from an entire directory structure.
Would something like this do it?
find /mount/point -name '*.ogg' -type f -exec rm '{}' \;
Last edited by graysky (2009-06-07 17:08:18)

kludge wrote:
B wrote:
Why not just
find /path/ -name *ogg -exec rm {} \;
damn.  is there an o'reilly book about 'find' yet?  there should be.  i read the man page not too long ago and realized that it's a whole damned file-manager unto itself.
`man find` and search for '-delete'
Last edited by Mr.Elendig (2009-06-07 15:36:18)

Similar Messages

  • Can I delete all .plist files?

    Is it ok to delete all.plist files?

    It's best to describe the problem, if you have one, in as much relevant detail as possible, rather than what you think is causing it or how you think it should be solved.

  • Hi ! i am using mac air i download from app store IDESKTOP when i open it its delete all my file and folder on my mac, hi ! i am using mac air i download from app store IDESKTOP when i open it its delete all my file and folder on my mac

    hi ! i am using mac air i download from app store IDESKTOP when i open it its delete all my file and folder on my mac, hi ! i am using mac air i download from app store IDESKTOP when i open it its delete all my file and folder on my mac

    Here you can contact the developer.
    (Notice, I'm posting this line only once. Not 4 times. )

  • I was cleaning my macbook pro and i deleted all my files including itunes. Then when i turn on my itunes it says the folder"itunes" cannot be found or created, and is required. the default location for this folder is inside the "music" folder. help please

    My itunes keep saying The folder “iTunes” cannot be found or created, and is required. The default location for this folder is inside the “Music” folder.iTunes needs a library to continue. You may choose an existing iTunes library or create a new one. please help i presschooseexisting cuase i have one but then it says this The  file cannot be found or created. The default location for this file is in the “iTunes” folder in the “Music” folder. please help

    I was cleaning my macbook pro and i deleted all my files including itunes
    Restore your computer from your backup. 

  • How can I delete all the files in the Adobe CS4 Master Collection from my machine?

    How can I delete all the files in the Adobe CS4 Master Collection from my machine. I have tried Control Panel but it will not do anything, there are no error messages, it is like as if it is ignoring my instruction. Why should it be so difficult to delete programs one does not want. Any ideas please.

    Moved from Cloud forum to Downloading, Installing forum
    Try running the Adobe Cleaner Tool
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

  • I bought MACkeeper and used it to cleanup my computer. I have a Imac intel, When I didi this it deleted all my files. I tried to do a time machince. and it didn't work. so I pulled the files out of trash and my computer still isn't runing right.

    I bought MacKeeper to help make my Imac intel faster. Insted it deleted all my files.
    I tried to recover using time Machine, and it didn't recover back to yesterday. So I started to pull
    the files and Applications out of trash. This just got me lipping along. It ran slower and would get
    the spining wheel of death. I finaly gave in and thought I would reinstall Lion and everything would be
    great. Well wrong, I seem to be starting fine, but all my files are gone. When I go in to time Machine
    I see a device drive name (xxx). I go in that device and all my files are there. how do I pull them to the new
    install of Lion? So I can be happy again. Thank you for all your time and help.

    Do not install MacKeeper:
    https://discussions.apple.com/docs/DOC-3026
    (Please note that references to the original developers, Zeobit, should now refer to Kromtech Alliance Corp, who acquired MacKeeper and PCKeeper from ZeoBit LLC in early 2013.

  • My music files etc were all located on my old laptop which was stolen. I have just plugged my iphone in to my new computer and it has deleted all my files. Has anybody got any ideas on how to retrieve the files?

    My music files etc were all located on my old laptop which was stolen. I have just plugged my iphone in to my new computer and it has deleted all my files. Has anybody got any ideas on how to retrieve the files?

    WINDOWS?
    Connect the iPod to your PC. If iTunes starts syncing (ie erasing) your music automatically, hit the X in the upper right hand corner of iTunes display, to the left of the search box, to stop it.
    In Control Panel, Portable Media Devices, double-click your iPod.
    In the Tools menu -> Options, in the View Tab, check "Show hidden files and folders."
    Navigate to the Music folder. On my 'pod, the full path is
    Portable Media Devices\NAME of IPOD (F:)\iPod_Control\Music
    Select all the music folders, and drag and drop them into a folder on your hard drive, or directly into iTunes.
    And you're done! The iPod music folder structure is strange and inexplicable, but once you move your files into iTunes you can set it to automatically organize your folder by artist and album to clean that up. (To do this, in iTunes Edit menu, choose Preferences and in the Advanced tab, check "Keep iTunes Music Folder organized."
    might be out of date worth a try

  • HT1222 hello..i accidently delete all my files in may ipodtouch...and ican restore it..i need to have a 10.6.3 version of itune,but i cant download files,coz i only have 32 bit..pls, help what o do. i love my ipodtouch realy..i just want to restore my itu

    hello..i accidenty delete All my files in my ipod touch,,and icant restore my itunes,coz i need a version of itunes 10.6.3,but i only have 32bit..i cant download because they need 64bit,,pls,,help me dont know what to do,,i need to restore my itunes music..sorry im not good in english,,try to understand

    I assume you don't have a backup on an external HD. You always should, because then you could easily fix your problem.
    Boot in Safe Mode. See What is Safe Boot, Safe Mode? (Mac OS X)
    http://docs.info.apple.com/article.html?artnum=107392 Takes a while to run, but it usually "fixes" problems.
    Safe Boot takes longer than normal startup
    http://support.apple.com/kb/TS1884?viewlocale=en_US
     Cheers, Tom

  • Media Transfer 1.41 deletes all music files

    When i updated media transfer to 1.41 this problem apeared:
    it first deletes all music files on the phone before it syncs them.
    If i sync one mp3 file it takes 1-2 hours for media sync to first delete all files ant then copy all files to the phone.
    (I have over 4gig of music on my memory card.)
    I did not have this problem with the 1.4 version.

    I have a few comments/bug reports (I have also submitted these through the app).
    BUGS:
    1. The app seems to force conversion of perfectly normal AAC files created in iTunes (.m4a). The files are converted to... AAC!!!
    There is no need for this conversion as the files play fine on the phone (N95)
    Both files created with iTunes standard ACC settings and with a custom VBR settings are converted.
    MP3 files are transferred without conversion.
    2. Bookmarked AAC files (.m4b) are not converted or transferred (they are ignored) - many podcasts use this format and they play fine in iTunes and QuickTime.
    (Edit - it seems iTunes and OS X treat these files as protected, even though they are not - also the N95 will not play the files if copied without conversion).
    FEATURE/ENHANCEMENT REQUESTS:
    1. User prefence for caching - I have a 4GB memory card and may not be interested in having everything on it cached on my computer. When using USB2 the connection should be fast enough for viewing/streaming from the phone.
    2. The viewing in the browser is a bit confusing - when e.g. the memory card is selected it shows a lot of different files from different folders (I have TOMTOM maps on the card so a lot of useless files are showing) It would be nice to either be able to select which files are shown, or just make the browser work normally, so it is only showing files in the current folder (selecting the memory card would show the root folder).
    3. Options for conversions (e.g. "Do not convert files with a bitrate below xxx kbps").
    I look forward to the next version - if the 2 bugs are fixed this is already a very solid app.
    Great to see real OS X support.Message Edited by peter321 on 09-Jun-200707:31 PM

  • I bough a Mac Pro 2010 second hand and deleted all the files without backing up now is asking me for the Apple ID of the person who installed maverick,any ideas

    I bough a Mac Pro 2010 second hand and deleted all the files without backing up now is asking me for the Apple ID of the person who installed maverick,any ideas

    If the Mac's firmware was updated, you can try this Internet Recovery:
    Hold down Command + Option + R during restart or bootup; hold until you see a spinning globe (takes up to 10 minutes). Once in the Utilities window, use Disk utility to wipe the drive, then return to the window and choose to reinstall OS X. If that works, the OS will be installed without being tied to an Apple ID.
    FWIW, if the firmware was updated, you will not be able to use the Snow leopard disk to install - I just did several tests and it does not work. You can, however, possibly install the SL onto an external drive and then clone it to the internal or (if you have a clone), boot from that and clone it back - I just tested that as well.
    If the firmware was not updated, then you can use the SL install disk.

  • I'm running Windows 7 and iTunes and the other Apple programs wouldn't automatically update. Went through all the options and finally had to delete all Apple files and re-download iTunes. Worked fine, until the next update. Is there a glitch in the system

    I'm running Windows 7 and iTunes (and the other Apple programs) wouldn't automatically update. Went through all the options and finally had to delete all Apple files and re-download iTunes. Worked fine, until the next update. Is there a glitch in the system? Does someone know of some proprietory block (I think it is related to Quicktime)? Also, once I re-downloaded everything, cleaned everything up, and deleted duplicate files, I closed down my computer. When I re-started it, iTunes was "brand new" -- all of my music, organization, tagging, etc. was gone and had to start over. Idea?

    Ok, so after like 4 days of going through all these different issues, I figured out that several programs weren't downloading, and it was an issue with my wireless connectivity messing up the digital signatures, so if you plug in your comp to the modem and delete your temp files, it should start to work!

  • I had a message that shows my mail box is full, i have deleted all my file but unfortunatly it shows no change on the storage at all

    i had a message that shows my mail box is full, i have deleted all my file but unfortunatly it shows no change on the storage at all

    Ditto on Clinton's suggestion using OmniDiskSweeper.  It is an excellent tool.
    It may seem elementary, but do empty Trash.  Only then do you gain storage space.
    You may also find a few hints here:
    http://pondini.org/OSX/DiskSpace.html
    Ciao.

  • "I got my Internal HD Full, but I've already deleted all my files"

    I got an iMac G3 and I can't do anything, no printing, no opening pdf's, no opening word, excel, pwpoint documents, no photos or music. My Internal HD sais that I got 0 available memory, but I've already deleted all my files (photos, music, docs... all), and it still saying the same. Everytime I try to open something, a message apear that says that i don't have any enough memory. What can I do?????

    Hello and Welcome to Apple Discussions. 
    I had this happen a couple of years ago on my Powerbook (with an early version of 10.3 installed). In my case some console/log files had got out of control and I had several at 10Gb+ each. They filled my drive until I had zero bytes free.
    Use the program WhatSize or similar to find large files on your system and delete them. Be very careful deleting files; especially if they are system generated. As soon as you possibly can back-up your entire system.
    In my case I ended up doing a system re-install but that may well not be neccesary in your case.
    mrtotes

  • How long does it take to delete all the files in a lost MacBook Pro?

    How long does it take to delete all the files in a lost MacBook Pro?

    Quite a while since there may be 1/2 million files or more to delete. There is only one quick way, and that is to reformat the drive.

  • Since Maverick update, when I try to share a video I get Error 1 frame. I have duplicated the project, I have deleted all rendered files. I have tried it several times and always gives me a different frame.

    Since Maverick update, when I try to share a video I get Error 1 and a frame number. I have duplicated the project and tried to share. I have deleted all rendered files and then render again. I deleted all rendered and then tried to share it before rendering. Nothing works. I shared the project a couple of weeks ago and was fine. I only changed a small clip and can't share to burn a dvd.

    What software version? What computer?
    Trash preferences. Switch off background rendering. Trash project and event render files. Do not render. Export. Do not do anything on the computer during export. Make sure App Nap is switched off in the Finder.

Maybe you are looking for

  • Unable to Display Signature Image in Siebel BI Report

    Hi, I have been trying to display a signature in a report but when I run the report the place where the signature should be is empty. I have searched through the log file but there is no error indicating anything is wrong. Siebel has an out of the bo

  • Issue during automatic Creation of Work Order from Notification

    Hi, I have a issue during automatic Creation of Work Order from Notification. BADI implemented: NOTIF_EVENT_POST BAPI called in BADI: BAPI_ALM_ORDER_MAINTAIN I am able to create Work Order successfully but after that i need to update notification hea

  • CS4 Dreamweaver not replacing paths for images/links

    New Windows 7 machine with CS4 Web Premium.  When using Dreamweaver, and, for example, replacing an image or a link in the design window using the properties...  I click on the image, click the browse button, select the new file (I've tried hitting O

  • Leopard 10.5.6: netstat, lsof -i, traceroute slow

    Did anyone else notice that netstat -a, lsof -i, traceroute and establishing connection to another Mac take exceedingly long after 10.5.6 update? netstat -a can take up to 3 - 5 min on my Mac Pro, whereas it used to list all connections in a second o

  • Trying to run a batch file in ODI and the file is on a windows network drive.

    Hi, I'm trying to run a batch file that is located on a windows shared drive for the ODI server. When I try to run the file through OS command by giving the file path in the "command line". I get the error " ODI-1226: Step fails after 1 attempt(s). O