LinuxQuestions.org
Register a domain and help support LQ
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 06-20-2006, 11:39 PM   #1
some_random_dude
LQ Newbie
 
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
Help with winrar - adding multiple files into separate archives


hi there i have a unix server (FC4) and have winrar comand line on there and i have a folder of files i need to add to there own .rar file but cant fine out how

please help
 
Old 06-21-2006, 07:22 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
target=/folder/to/store/archives_in; find /some/folder/name -type f | while read f; do
rar a "$target/$(basename "$f").rar" "$f" && echo "Archived "$f"."; done
 
Old 02-03-2007, 10:18 PM   #3
Quile
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
This was perfect for me, but now in rar there is folders ec.(/some/folder/name)..
How i get only the file in rar whitout folders?


-Quile

Last edited by Quile; 02-03-2007 at 10:58 PM.
 
Old 02-04-2007, 09:04 AM   #4
Quile
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
Any one? Please HELP. =
 
Old 02-04-2007, 11:05 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
Check the "-ep*" flags.

* Note you should make your own thread if your questions do not help fix the OP's problem.
It helps you get better exposure for your questions and prevents possible thread hijacks.
 
  


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
Unzip multiple zip files, each to separate folder smart_sagittari Linux - Newbie 3 03-21-2012 08:41 AM
untarring archives that span multiple tapes? BrianK Linux - General 2 11-29-2005 09:41 PM
extracting files from RAR archives corbis_demon Linux - Newbie 3 03-30-2005 05:25 AM
how to extract winrar files Paxmaster Linux - Software 1 11-04-2004 09:16 PM
Extract >1 files using WinRAR mib Linux - Software 11 06-29-2004 01:15 AM


All times are GMT -5. The time now is 06:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration