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

Results 1 to 2 of 2
  1.     
    #1
    Member

    Default Need Help when compressing files by Linux RAR

    I got many more files ***.avi and 1 website.url file.
    I d like to pack all the avi files seperately with the url file.
    eg. 1.avi + website.url ===> 1.rar
    2.avi + website.url ===> 2.rar
    3.avi + website.url ===> 3.rar

    How can I do it automatically?

    thx in advance
    shzzzzyyyy Reviewed by shzzzzyyyy on . Need Help when compressing files by Linux RAR I got many more files ***.avi and 1 website.url file. I d like to pack all the avi files seperately with the url file. eg. 1.avi + website.url ===> 1.rar 2.avi + website.url ===> 2.rar 3.avi + website.url ===> 3.rar How can I do it automatically? thx in advance Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Create a bash file called rarcreate in the folder where you keep avi files.
    Code: 
    for file in *.avi
    do
      i=${file%.*}
      rar a "$i" "$i.avi" website.url
    done
    Save it and change attributes to 777.

    to run from ssh go to folder then type ./rarcreate

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Compressing files to the smallest possible size
    By Apathetic in forum Technical Help Desk Support
    Replies: 6
    Last Post: 22nd Jun 2012, 06:49 AM
  2. All Move Files to folder with same name on linux?
    By robinex in forum Technical Help Desk Support
    Replies: 2
    Last Post: 13th Jun 2012, 08:48 PM
  3. [req] how to unrar files in linux ?
    By heppinnz in forum Web Development Area
    Replies: 9
    Last Post: 24th Sep 2011, 02:38 PM
  4. Replies: 10
    Last Post: 13th Jul 2010, 04:49 PM
  5. [linux]Rar files, upload to RS & HF then delete the files
    By Snell in forum Tutorials and Guides
    Replies: 8
    Last Post: 21st Jun 2010, 07:01 AM

Tags for this Thread

BE SOCIAL