Question about unraring via Terminal

Discussion in 'Mac Basics and Help' started by neselain1, Aug 8, 2013.

  1. neselain1 macrumors newbie

    Joined:
    May 19, 2013
    #1
    Hello all,
    What I have is several rar's that contain rar files inside. I've spent more time trying to figure this out than to just manually open these individually but I am determined to figure this out.
    I've managed to figure out how to cd (change directory) and be in the right directory and I'm typing these instructions into Terminal.

    unrar x -kb -o- -or -r *.rar

    This makes a folder with original .rar file name and the individual .rar files are in it (unextracted), but...I would like it to actually extract each individual .rar with the following criteria: if, there is only one file in a particular .rar then no folder, just extract; if, there is more than one file in a particular .rar, extract into a folder in same directory named after that .rar file. Then...eventually, after testing that this works, have it automatically delete original .rar files.

    I am hoping that some of you brainiacs can help me with this.

    Thanks in advance.
     
  2. ElectronGuru macrumors 65816

    Joined:
    Sep 5, 2013
    Location:
    Oregon, USA
    #2
    RARs are like minivans, a tangible sign of evil. Try StuffIt Expander.
     

Share This Page