Activity Stream
48,167 MEMBERS
6743 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member

    Default exist this for rar linux?

    lets say i have a folder called programs and inside has 3 subforlders calledwindows linux mac

    /programs/
    /programs/windows
    /programs/linux
    /programs/mac


    which one command can i make rars of the subfolders to have the following files windows.rar linux.rar mac.rar i know how to do it one by one , but i have a folder with a lot of subfolders so i will take alot of time .... please help me
    bachbell Reviewed by bachbell on . exist this for rar linux? lets say i have a folder called programs and inside has 3 subforlders calledwindows linux mac /programs/ /programs/windows /programs/linux /programs/mac which one command can i make rars of the subfolders to have the following files windows.rar linux.rar mac.rar i know how to do it one by one , but i have a folder with a lot of subfolders so i will take alot of time .... please help me :)) Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Try this by running from the programs folder.
    Code: 
    find -depth -type d | while read dir; do rar -a   ${dir}.rar ${dir}/* ; done

  4.     
    #3
    Member
    i have the following error

    ERROR: Unknown option: a

  5.     
    #4
    Respected Member
    What option do you use in a single rar of the folder?
    I used -a for add and it worked fine. Just change the option -a to whatever you use or leave the -a out and see how it works.

  6.     
    #5
    Member
    thanks for help me i already find a command working for me

    for f in *; do rar a -s -m0 "$f.rar" "$f"; done

    splits sub directories and rar with its original subfolder name

  7.     
    #6
    Respected Member
    Quote Originally Posted by Lock Down View Post
    Try this by running from the programs folder.
    Code: 
    find -depth -type d | while read dir; do rar -a   ${dir}.rar ${dir}/* ; done
    Great. You are welcome. Then this command would be :

    find -depth -type d | while read dir; do rar a -s -m0 ${dir}.rar ${dir}/* ; done

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is There A Demand For This? Does It Already Exist?
    By Maverick in forum General Discussion
    Replies: 2
    Last Post: 8th Apr 2012, 05:17 PM
  2. Special blog? Exist??
    By Elleboy in forum Webmasters, Money Making
    Replies: 3
    Last Post: 10th Dec 2011, 02:35 PM
  3. Interesting cPanel/WHM Plugins that exist...
    By Cory in forum Server Management
    Replies: 4
    Last Post: 13th Jun 2011, 04:45 AM
  4. File Does Not Exist Error
    By Pr0nZtrA in forum Technical Help Desk Support
    Replies: 2
    Last Post: 17th Sep 2010, 10:21 AM

Tags for this Thread

BE SOCIAL