LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-30-2017, 05:48 AM   #1
dibo123
LQ Newbie
 
Registered: May 2017
Posts: 1

Rep: Reputation: Disabled
Par2create for different multipart RAR archives in a folder?


Hey there,

I'm a pretty new linux user and want to create par files for some of my backups. Hope someone can help me quickly. :-)
I created some multipart rar archives like these:

backup1.part01.rar
backup1.part02.rar
...
otherbackup.part01.rar
otherbackup.part02.rar
etc.

Since I have tons of multipart rar archives in that folder I wanted to use the command line to create par2 files for EACH of these multipart rar archives.

I tried the following:
for f in *.rar; do par2create -r5 -n5 "$f" $f.rar; done

This works but creates par files for every part. I would like to have only one set of par files for the whole rar archive (part01.rar, part02.rar and so on).
Can someone tell me how I have to do this (wildcard??)

Thanks in advance!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAR archives: a linux program to extract files from them. stf92 General 2 11-11-2013 11:51 AM
Extract all archives in rar infonlinebr Linux - Newbie 5 05-30-2008 06:52 AM
LXer: Handling RAR and 7-Zip archives in Linux LXer Syndicated Linux News 0 02-02-2007 07:21 AM
Extracting multi-part RAR archives? Kixdemp Linux - Software 2 03-22-2006 05:44 PM
extracting files from RAR archives corbis_demon Linux - Newbie 3 03-30-2005 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration