How can i select all RAR archives in a folder and it's subfolders?

so that i can quickly move them all into the same folder to unarchive them. This is after i've decompressed a bunch of zips. Unless someone can tell me how to get 'the unarchiver' to be less dumb, and find the other pieces on it's own. I am constantly getting audio and video in this stupid file arrangement, obviously the work of an evil windows warlock.
like this
[folder]
somefile.xyz.01
[folder]
somefile.xyz.02
[folder]
somefile.xyz.03
and so on. It is driving me completely crazy because it seems like it should be such a natural thing to tell the OS- 'hey, select all the files all the way down into all the subfolders within this folder that are like this one.'
i will set up a shrine and tell tales of your greatness througout the land if you can help me figure this out.

Here's what you do...
open a console window at the root directory that contains all of the .zip files.
After you open all of the zip files you'll have a directory full of subdirectories that contain your .rar files.
Make sure your console window is pointed at the root. If you type "ls" (without the quotes) in the console you should get a directory listing showing all of the subfolders.
Now type this command into the console:
find ./ -iname "*.rar" -exec mv {} ./ \;
This command will recursively find all of the .rar files within the parent directory and then move them to the root level of the parent directory.
Now all of the .rar's will be at the same level and you can use your tool of choice to unrar them.
OOPs, I meant terminal window, NOT console window.
After I wrote this response I put together a little automator workflow and saved it as a service. Seems to work well. Just open automator and create a service. Specify that the service accepts folders from the finder. Then add a single component which is "run shell script". Set the shell script to pass input as arguments. The shell script should be set to contain this:
for f in "$@"
do
          cd $f
          find ./ -iname "*.rar" -exec mv {} ./ \;
done
Save with a service name: I use "unrar subfolders".
Now you simply right click on the parent folder that contains subdirectories that have segments of .rar archives. Pick the service that you created and the magic will happen and all .rar files will be at the parent level. Make sure you right click the parent folder and not just one of the .rar subfolders, that won't work.
This script can easily be modified to also do the unzip step and clean up afterwards but I like to keep my actions simple and short to avoid unintended consequences.
Those of you following along might notice that the script in fact can operate on several folders so if you select a set of folders and right click it should process all of them in turn. I haven't tested that!
The useful trick that can be used again and again is the "find ./ ########### -exec ####### ./ \;" sequence. This will recursively search from the current parent directory and execute another command on everything that the search finds. The search can be as complex as you like as can the execution step. Just make sure you really know which directory is the current parent because you can easily wind up firing this up from your account root or even system root and do nasty things!!!!!

Similar Messages

  • How can I select all subject related messages from Inbox and Sent folders

    L&G,
    is there any way to select messages containing the same subject from the Inbox and the Sent folder by means of an keyboard shortcut. I.e. I would like to select a message in the Inbox folder and request Mail to display all related mails.
    Thanks in advance for your support.

    not like this. you can do a subject search inside one mailbox or in all mailboxes at once. you can not restrict a search to two mailboxes. even when searching one mailbox you have to enter the search string in the search window. there is no shortcut that will do it for you.

  • How can I select all messages in Inbox, Trash and/or Bin in one go to delete them.  I currently have 3000  unwanted messages in my Bin box and wish to delete them without having to individualy select them 50  at a time.y

    How can I select all messages in either my Inbox, Trash and /or Bin in one go to delete them all in one go.  I currently have 3000+ unwanted messages in my Bin

    Click on the inbox then Edit>Select All (if you are using Mail, if not you'll have to tell us which mail program you use) repeat in other mailboxes as needed.

  • My desk top was infected and shutdown before I could do anything. How can I transfer all my music, movies, films, pictures and apps to another computer

    My desk top was infected and shutdown before I could do anything. How can I transfer all my music, movies, films, pictures and apps to another computer?

    If there was no backup, where would you recover the photos from.  Sorry but those pictures are gone.

  • I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto?

    I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto? Even if there are duplicates, I'd like to make sure I get all the photos from my phone into iphoto.  Thanks

    To see all the photos on the phone, including photos that have already been imported into iPhoto, deselect the "Hide Photos Already Imported" checkbox. If the camera contains photos that have already been imported into iPhoto, those photos are hidden by default.

  • I bought a mac air retina to replace a mac pro. How can I get all files of the back up and copy them to the new mac?

    I bought a mac air retina to replace a mac pro. How can I get all files of the back up and copy them to the new mac?

    Mail window may be in the Full Screen mode.
    Move the mouse pointer to the top right corner of the Mail window and hold it there.
    Menu bar should drop down and click the blue double arrow icon.
    Full Screen toggle shortcut:  control + command + F

  • How can I point the premiere to a blank folder and bring only the files needed for the project

    When I start premiere it loads all files from all my photo/video libraries (app 150 gb almost 20,000 photo).  I do not want to sort thru all these files for a project.  How can I point premiere Elements to a blank folder and get the appropriate media for a project as I
    need them.

    As Steve points out, there are really three programs in the Premiere and Photoshop Elements "suite," PrE, PSE and then Organizer, which links between the two, and is an Asset cataloging program. Because of the commonality of the GUI (Graphic User Interface), there can be confusion as to exactly which program one is in.
    If you launch just PrE, and not Organizer (can be launched from within either PrE, or PSE), the only Assets/media that you will see is that, which you have Imported into your Project.
    Also, having the Assets for a Project, in a separate folder, or folder structure, is a great way to set up the Project. This article goes into details on one set up method: http://forums.adobe.com/message/4491450#4491450
    Good luck, and hope that helps,
    Hunt

  • How can I select all stamps in a PDF file without having to click on each individual one?

    I use the stamps and text box feature to mark up engineering drawings in abobe acrobat 10. Sometimes revisions come for already worked on drawings so I need to transfer my work over. Usually I just hold control and click each stamp and text box then hit CTRL+C to copy all of them. However, sometimes there are 200+ stamps on a single PDF and clicking each and every one without letting go of CTRL is a lot harder than it sounds.
    Any ideas on how to do a "select all" function? (the actual select all doesn't work in this case, it looks for words.)
    Thanks

    Stamps are basically comments. As such, they appear in the Comments List,
    where you can easily select them by clicking inside the list and then
    pressing Ctrl+A.

  • HT5500 How can i delete all contacts on both iphone 4 and ipad mini 2

    How can I delete all contacts on an iphone 4 or ipad mini 2

    Open a contact.  Click "Edit".  Scroll to the bottom.  Choose "Delete contact".  Repeat.

  • How can I delete all the data in Mac pro and install the latest version of OSX Mavericks?

    Hi,
    I want to know why my mac become slow and so, I want to data and system and I want to install the latest version OS X Mcvericks. How can I do?
    Thanks

    Open the App Store app:
    And, choose Mavericks:
    Then download and run the installer. Tip: It would be a good idea to quit the installer before proceding with the install, so that you can copy it or move it to location outside of your Applications folder. That way the installer won't be deleted after you run it.
    If you don't have a backup of your current Lion partition, the only way that you can do a clean install is to erase that partition, thus losing all of your data.

  • How can I remove all traces of Facebook, Yahoo, Google, and Twitter from my computer?

    Hello. I have noticed some very annoying adware/malware/bloatware, whatever it is called. I can not seem to get Google, Yahoo, Twitter, and Facebook off of my computer. When I go to empty my cache and cookies etc from Safari these websites come right back into my top sites. What gives? I don't use these sites. How can I get this garbage off of my computer and keep it from coming back? It's like a virus or something with how annoyingly persistent it is.
    Thanks.

    Andy, thank you.
    Question one:
    I will investigate the .NET Framework Cleanup Tool, which Styxen (to whom I also thank) also pointed me at.
    Question two:
    I’m still confused. 
    I installed my new Windows 7 SP1 system on the 5 November 2013 and Windows Update subsequently offered a number of updates to .NET Framework 3.5.1 which are all successfully installed. 
    KB958488, KB979900, and KB982526 are all old updates now and, with the exception of KB958488, have never been offered by Windows Update and are not installed on my system. 
    As mentioned in my original post, KB958488 is installed on my system but I believe that it was installed without my knowledge by the installation of the Mouse and Keyboard Center or possibly by .NET Framework 4 Client Profile.
    If Windows Update had independently determined that my system needed or could benefit from KB958488, your post appears to suggest that Windows Update would have offered
    KB982526 instead.
    And, of course, I still have no explanation as to why, if KB958488 is an update to .NET Framework 3.5.1, all its files appear to belong to .NET Framework 4 and my update history believes it belongs
    to .NET Framework 4 as well.

  • How can I select all images in a folder without subfolders?

    Either I am looking with my nose (as we would say in The Netherlands) or it is not possible:
    I have a folder A with images and in that folder there's a subfolder B. I want to rename all the images inside folder A so I want to select them all to begin with. However, clicking on folder A in LR also show all the images in folder B and therefore CTRL-A also selects them all. Now, how can I only select the ones in folder A?
    Danny.

    Winston's example certainly provides a method for the situation you described, but it doesn't help if you have multiple, nested subfolders. But my piece of advice is to be patient. Things will get better on this front.
    - Pierre

  • How can I select all "Related Messages"

    When I click on a message the application highlights all related messages in list view.
    I like to select these highlighted messages in one shot and delete or move them. Is there an easy way to select them without going one by one and Command-click selecting them?

    I have also found that if you have other emails, say in the sent folder, you can actually select (command-click) multiple mailboxes on the left pane and it mashes both mailboxes together, and then the 'conversations' have both sent and received emails in that thread.

  • The font i used in my KEYNOTE presentation is not available when you upload it to the cloud.  So, now my  text boxes are all messed up.  How can I select ALL font boxes of presentation and change (at least) the font style?

    I have a large presentation that I need to access from the cloud THIS SATURDAY.  Now, after uploading from my iMac to Cloud, the font is all messed up because the font I selected on my mac is NOT available on the Keynote Cloud....so capitalization is wrong, inconsistent, etc.
    Is there a quick way to select all text and change the style?  Help..I am running out of time!

    What's the URL of the page?
    In the mean time clear the cache and reload the page.

  • How can I remove all messages, save to a DVD, and access them easily later?

    I recently dropped my .Mac account in order to use Gmail full time. I would like to be able to take those mac.com messages off of my computer--preferably saving them to a DVD--so that when I activate my Gmail account in Mail, they would be totally separate. I am also trying to save hard drive space.
    I've looked around about this, and even downloaded some Applescripts for Archiving mail, but those seem to continually make Mail crash (I have 3 years worth of email saved in Mail.app--about 3,000 emails). I have read enough about Backup to know that it saves things in strange/proprietary ways.
    Is the best plan simply to copy that ~/Library/Mail folder, straight up to a DVD, and then clear it off of my Mac? How do I do that without making Mail.app unstable? And will it be difficult to then read them from the DVD later if I need messages?

    ... and import its contents back into Mail whenever you wish ...
    You can also open individual .emlx message files within the copied mailboxes to read them, without first importing them back into Mail. However, by itself this isn't very practical because the files have names like "12345.emlx" that offer no clue about their content, so finding the message of interest among 3000 of them is a challenge.
    You might think that Spotlight would help with this, but in its normal state it excludes .emlx files from searches, so you can't simply do a Finder search on subject, content, etc. There are ways around this but none are simple:
    1. Use a Spotlight "raw query" search to find the messages. This avoids the exclusion of .emlx files that is tacked onto all normal Spotlight queries but requires knowledge of the syntax of raw queries. (To get an idea of how that looks, & to see the exclusions, you can do a "Get Info" on a Smart Folder. The raw query string is listed after the "Query:" entry in the General section.)
    2. Replace the ".emlx" extension with ".txt" or similar in the copied messages. (This could be done with an AppleScript using Finder.) Spotlight will then include the files in searches. In this case, opening the message file by default will be with TextEdit or similar, so you won't have access to "Reply" or similar features of Mail, but you will see the entire message, including the preference-like xml info about it that follows the message body in the raw .emlx file. As long as you don't alter the content, you can reimport the message into Mail by changing the extension back to ".emlx."
    3. Mimic what the Mail archive utilities do & construct a database that either relates the numbered .emlx files to their content or import entire files into database records & use its search features to find the messages of interest. This is appealing if you have a powerful database app like Filemaker & skills at database construction because you can construct any view of the info you want & organize it however you like. Obviously, if you don't, it would be simpler to buy a utility, which may offer other features that you might find useful.
    These alternatives would be most useful if you need to avoid reimporting large mailboxes back into Mail because of disk space concerns. They also avoid the perhaps considerable time it would take to reimport thousands of messages just to find one or two of interest. The second & third ones are somewhat self-contained & independent of Mail itself, which is both a strength & a weakness, depending on your needs.

Maybe you are looking for