Hi all! How do I get rar to store all the sub-dir? I use: rar a WHB.rar *.* which gets only the files in the dir that I'm in. I also want the subs too. Thanks, JIM -- Jim Hatridge Linux User #88484 Ebay ID: WartHogBulletin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 26 July 2009 21:54:11 James Hatridge wrote:
Hi all!
How do I get rar to store all the sub-dir? I use:
rar a WHB.rar *.*
which gets only the files in the dir that I'm in. I also want the subs too.
If you do *.* then it only gets the files with an extension. Try rar a WHB.rar * The single asterisk should get everything, except the files that start with a dot (if you want those too, do "shopt -s dotglob" before running the rar command) Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
HI Anders et al! Thanks this was what I was looking for! JIM On Sunday 26 July 2009 22:12:18 Anders Johansson wrote:
On Sunday 26 July 2009 21:54:11 James Hatridge wrote:
Hi all!
How do I get rar to store all the sub-dir? I use:
rar a WHB.rar *.*
which gets only the files in the dir that I'm in. I also want the subs too.
If you do *.* then it only gets the files with an extension. Try
rar a WHB.rar *
The single asterisk should get everything, except the files that start with a dot (if you want those too, do "shopt -s dotglob" before running the rar command)
Anders
-- Jim Hatridge Linux User #88484 Ebay ID: WartHogBulletin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 26 Jul 2009, James Hatridge wrote:-
Hi all!
How do I get rar to store all the sub-dir? I use:
rar a WHB.rar *.*
which gets only the files in the dir that I'm in. I also want the subs too.
Try using the option -r and, unless you have directories with a '.' in the name and only want to add those, try using: rar a -r WHB.rar * Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | RISC OS 3.6 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 26 July 2009 22:17:03 David Bolt wrote:
Try using the option -r and, unless you have directories with a '.' in the name and only want to add those, try using:
rar a -r WHB.rar *
I don't think that's what -r is for. -r is when you're looking for specific files in all subdirectories. e.g. rar a -r text.rar \*.txt will get all *.txt files from the current directory as well as all subdirectories. If all you want is to add absolutely everything from CWD as well as all subdirectories, then the simple "a" is all you need Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 26 Jul 2009, Anders Johansson wrote:-
On Sunday 26 July 2009 22:17:03 David Bolt wrote:
Try using the option -r and, unless you have directories with a '.' in the name and only want to add those, try using:
rar a -r WHB.rar *
I don't think that's what -r is for. -r is when you're looking for specific files in all subdirectories. e.g.
rar a -r text.rar \*.txt
will get all *.txt files from the current directory as well as all subdirectories. If all you want is to add absolutely everything from CWD as well as all subdirectories, then the simple "a" is all you need
When I tested it, it didn't touch the contents of a directory, which was why I mentioned the -r. Another test just now shows that it does work recursively. However, that was because I used "*.*" as the wildcard, not just a plain "*" . Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | RISC OS 3.6 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Anders Johansson
-
David Bolt
-
James Hatridge