How to remove thousands of file called with the same name with just one number most of the other

I've created this thousands of file with a python script, and i've tried to delete all of them using another python script which uses while command and it does work but it's really too slow and my finder crashes. I can't delete all of them manually because it would take forever and from the terminal i don't know how to delete them. The files haven't got an extension and are in my user directory, so please if somebody knows something to do tell me. (sorry for my english)

Yes there is a way. Post back with the following information:
1. With respect to your home directory, what is the exact folder that the files are in (ie, are they in the Documents folder, or in a subfolder within the Documents folder). What are the exact names (caps included) of these directories?
2. What is the exact name scheme of the files? You mentioned they are incremented numerically, but what are the rest of the files' names (again, capitalization is important)?
With this information, there are several ways to approach the problem, which will basically be four steps to ensure you do not inadvertently remove files you wish to keep:
1. Create a new folder to temporarily house the files.
2. Issue a command to target the files by name and move them into a separate folder.
3. Check the old parent folder to ensure nothing is missing, and optionally check the names of the moved items.
4. Finally delete the contents of the temporary folder, along with the folder itself.
The specifics of these steps will depend on the names of the files and the folder that they are in, so provide as much information as you can about that, and we can work through the steps.

Similar Messages

  • How do remove thousands of duplicate songs with the same date?

    Brand new mac book pro.  Made the move from windows.  Migration asst moved music from pc to  itunes.  I also have iPhone/iPad2.  Now I have 2-4 versions of every song and they all have the same date.  How can I get down to just one version of each song?

    Yes there is a way. Post back with the following information:
    1. With respect to your home directory, what is the exact folder that the files are in (ie, are they in the Documents folder, or in a subfolder within the Documents folder). What are the exact names (caps included) of these directories?
    2. What is the exact name scheme of the files? You mentioned they are incremented numerically, but what are the rest of the files' names (again, capitalization is important)?
    With this information, there are several ways to approach the problem, which will basically be four steps to ensure you do not inadvertently remove files you wish to keep:
    1. Create a new folder to temporarily house the files.
    2. Issue a command to target the files by name and move them into a separate folder.
    3. Check the old parent folder to ensure nothing is missing, and optionally check the names of the moved items.
    4. Finally delete the contents of the temporary folder, along with the folder itself.
    The specifics of these steps will depend on the names of the files and the folder that they are in, so provide as much information as you can about that, and we can work through the steps.

  • How To Remove PHP Extension File Association With Internet Explorer

    When I select a PHP file to open it is redirected to be downloaded and opened (or I can choose to save) in Internet Explorer.  I need to test the file in different browsers.  How can I remove this automatic association?
    I've tried selecting a php file from Windows Explorer and selecting a different browser with no success.  I recently bought a new computer with Windows 8.  It's a big jump from my old one which used XP where there was no problem opening files with
    a php extension.
    Pat

    it sounds like you have a file association for .php, and, that you don't want to have one, so the original default behaviour would instead be preferable?
    This discussion, although for Win7, may be helpful:
    (the discussion occurs between "camelgrass" and "Brink")
    http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html#post259052
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • How to remove  "save pdf file as" dialog in startdoc with adobe acrobat 6

    We set up pdfWriter as default printer and hope to generate pdf file with startdoc call. The existing code worked great on Adobe Acrobat 5. However, after we upgraded to Adobe Acrobat 6(complete install), the same code behaved differently. Somehow, startdoc always popped out a "save pdf file as" dialog box and ask for the file path but ignored the input path parameter(the pdf file was generated at the path that user manully input in).
    W do not like this dialog box at all and expect silent action. How to remove this annoying dialog box and make the old code working (taking the parameter as pdf file path)?
    Thanks for your help.
    JD

    Hi
    I accessed to a website from my uni library computer using my student account and download a pdf file in there. However, that pdf file contains a line of words saying "Accessed by ... University Library on 30 Mar 2007". This line is printed vertically and on the left side of the page.
    Do you know how to remove that line? I think the website just embedded that line into the file.
    Please help.
    Thank you very much.
    tuanduy

  • How do I open raw files taken with Canon 70D.  Not supported in Elements 12.  Is there a download?  Thanks.

    How do I open raw files taken with a Canon 70D?  Elements 12.  Version 8.0 Windows 7 64 bit.  Thanks in advance for any help.
    JWT
    Lamar, CO

    Thank you so much for you quick answer.  Works fine, now.  Thanks again, Barbara.
    JWT

  • How to make a PDF file short ( with less memory)?

    How to make a PDF file short ( with less memory)?

    @nalinss
    There are two ways: "Save as.." usually optimises size, but there is also "Optimize PDF" in the menu with many options what to exclude and to reduce in quality. Be careful here, as pictures can become very bad.
    A note: the size of a PDF vastly depends on from what source it is created. For example, if you draw some vector graphics in Visio and print to Adobe Printer, the resulting PDF is usually quite small in file size. Opening it in Illustrator and saving it again after you, let's say, just moved one line, can make it 10x as big. This is due to big overhead, Illustrator creates and this can not be reduced anymore in Acrobat later on. Sometimes it helps to convert or "save as" such an inflated PDF to a different format like EPS or HTML and print or convert again to PDF.
    So, if you created the PDF yourself and you still have the source, you may adjust settings in the export/print dialog to make it smaller.

  • HT4913 how to remove this ?  You can use iTunes Match on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 85 days.

    hello i ad my girlfriend profile and her itune library on my macbook and now i have this warning in my l itunes library, how can i resolve the problem ?
    You can use iTunes Match on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 85 days.

    If a computer has been associated with a device (as well as iTunes Matct, it can become associated via automatic downloads or re-downloading past purchases) then you will either need to wait until the 90 days have completed : http://support.apple.com/kb/HT4627
    Or you can try contacting iTunes Support and see if they can remove the association : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Why can't anyone tell me how to remove all those little "!" in the left column all at once or at least sort them so I can mark them and then delete them?

    Why can't anyone tell me how to remove all those little "!" in the left column all at once or at least sort them so I can mark them and then delete them?

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes.
    If, on the otherhand, you've been cleaning up your media from Explorer rather than iTunes and just want to eliminate the now broken links, use Tunes Folder Watch with its option to check for dead tracks on startup.
    tt2

  • How do I move a file directly from the desktop to a folder in OX 10?

    I am new to Mac and the Mountain Lion software.  Having worked exclusively with PC operating systems, I am familiar with how to work with files in Windows, but am having trouble doing similar actions in OX 10.  How do I move a file directly from the desktop to a folder in OX?  Although this answer is likely in a video tutorioal (somewhere), I do not have the time to sit an arbitrarily watch generic OS videos that give a broad brush overview, without answering specific queries.  Any help out there?

    You might fun http://www.apple.com/support/macbasics/ to be of help to get used to doing things the Mac way.
    Allan

  • How to remove photoshop elements 3 from being the default program to open photos

    how to remove photoshop elements 3 from being the default program to open photos in iMac 10.6.8; want to use Preview 5.0.3 as before. Somehow I clicked an "ok" to a question asking if I wanted photoshop e 3 to be the default program (NOOOO - too slow, too cumbersome just for viewing pix) What was I thinking????

    This might help just found googling http://www.bittbox.com/os-x/how-to-set-the-default-program-to-open-a-certain-type-of-file- in-mac-os-x
    Try once please.
    Thanks,
    Garry

  • I have an iTunes account with music. My wife has an iTunes account with apps. How do I get both on our iPad2? Without syncing to just one account?

    I have an iTunes with music and videos. My wife has an iPhone with music and apps. How do I get both on our iPad2?
    Without syncing to just one account?
    We each have our own laptops.

    Hmm.
    Probably easier for me to put all my stuff on my wife's computer I suppose.
    Rebuilding all those iTunes playlists is not very fun though.
    And of course anything new that I want on my laptop I will have to duplicate on her laptop in the future.
    Not sure how iCloud works just yet.
    So you can't have two laptops and manually sync both people's stuff to one iPad?

  • I have two Apple IDs - one associated with iPad and iPhone and the other associated with iMac and MacAir. I am going to lose the former e-mail address imminently and would like to associate all devices with just one ID. How do I do this? Thanks

    I have two Apple IDs - one associated with iPad and iPhone and the other associated with iMac and MacAir. I am going to lose the former e-mail address imminently and would like to associate all devices with just one ID. How do I do this? Thanks

    Thanks - I guess it is like there were two of me!
    I bought the iPhone first and it seemed natural to link it to the (work) e-mail address which was in constant use. The iMac for home use came next and it seemed natural to use my home e-mail address, particularly as I knew by then that I would lose the work address after my imminent retirement. The same logic went for the recent puchase of the MacAir. I am not sure what happened with the iPad (also a recent purchase) - iTunes seemed to puch me towards the same ID as the iPhone.
    It is not a huge problem - just makes my persona look schizoid! Otherwise very happy with everything Apple.

  • Have started to get  info window from iTune telling "This computer is already associated with an Apple ID. "You can download past purchases on this computer with just one Apple ID every 90 days......" How to handle this situation

    "You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 63 days." How to handle this situation

    https://discussions.apple.com/message/16567363#16567363
    From the  More Like This  section on the right

  • HT1212 How can I sync an old iphone with a new number to itunes. The new phone with old number is still syncing ok?

    How can I sync an old iphone with a new number to itunes as I am already running a new iphone with an old number??

    Thanks it just wont work needs a passcode but that code is for the new phone. Will go to Apple shop tomorrow.

  • TS1424 How to fix iTunes when you get this you can download past purchases on this computer with just one apple ID every 90 days. This computer can be used with a different apple iD in 50 days

    How to fix iTunes when you get this you can download past purchases on this computer with just one apple ID every 90 days. This computer can be used with a different apple iD in 50 days

    hi i dont know if this will work for anyone but i had not been on itunes for sometime but today i went on to watch a new episode of walking dead but it said i still had to wait 36 days out of the 90days , i managed to get my episode to download load by clicking my apple id in itunes going to account and at the very bottom off the page there is a button that says reset all warnings for buying and downloading i pressed this then it let me download hope this works for you worked for me

Maybe you are looking for

  • Hide a box that shows the url of a link when mouse move on it

    when i move my mouse to a link a box opened that contains url of the link. i want to disable this box which is shown in the image. http://postimg.org/image/xdqelqeil/ how can i disable this feature? i use windows xp sp3 and firefox 33.1

  • Cant get itunes to open

    when i try to open it i get this message {the file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes}

  • Starling lines with the 2LIS_02_SCL extractor.

    Hi expert. I have got a problem with the schedule line purchasing extractor, 2LIS_02_SCL. I noted that the extractor extract many more lines that those present in a purchasing order. In particular, it extracts also deleted items and the corresponding

  • I hear my rearspeaker in the front (spdif) - Whats wrong???

    Hi, mein Problem ist folgendes. Meine Boxen sind per spdif angeschlossen. Ich hre beim Creative-Boxentest, die Rearspeaker auf meinen Frontspeaker. Also z.b. "hinten Rechts" hre ich vorn rechts. Wo kann ich das deaktivieren ohne die Rearspeaker zu de

  • Mass Create PO release strategy

    Hi gurus, We are undergoing a major re-org. Due to the changes, we are taking the opportunities to delete the current strategies and re-create everything from scratch as part of the strategies clean up too. But in doing this, we find ourselves facing