Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently made the switch from Windows to Kubuntu. In windows I used Extract Now for pretty much all my extraction needs because of one great feature, the ability to right click on a folder and choose "Search for archives" from the context menu. This was awesome because it would seek out all rar files with in that folder and any of it's sub folder and extract them all. It could even clean up the mess by deleting all the rar files for you if you opted in for that option.
Being a Kubuntu user now, I have installed Extract Now via wine and it works aside from context menu integration which is not a huge deal breaker, but I would prefer a linux native application with this same capability. Now when it comes to a linux native app I would prefer context menu integration, but don't require it. I would like a basic GUI, but am even less preferential on that. At the very least, a command line option capable of doing just this would be just fine.
headrift, as far as I can see Arc can not do it, unless I missed something. I am still quite new to linux though and not quite grasping the concept behind your method.
Okay, sorry. "find", "grep", "xargs", "unrar" and "rm" are all shell commands. "find" will give you a list of everything under the directory you run it in, "grep" will search each of those for the pattern given, "xargs" takes each of those and runs a command on it, in this case "unrar" to extract or "rm" to remove. The pipe character just ties them together. You can do all of that on one line if you put a && between what's in those two code blocks.
Open up a Konsole session and try each one out with the "--help" switch to see what they can do first, like:
Lol I said I am quite new, not a complete idiot I understood the basic context of the cli commands with the exception of xarg. It was more what do with the command that was unclear. Thanks though, I can test it her in a bit as I have suspect it would need to be expanded to include r01 or something since different people package rars in different ways and a .rar is not always present. I suspect I can alter it enough to make do all at one though. Thanks for the tip! A gui for this would still be nice but cli will do fine for now.
I checked it out and seems like it could do the job as it is compatible with KDE and if the above command was implemented but sadly it is not a simply copy and paste job as the app wants to use it's own set of parameters. If any one could manage to get this working I would be forever grateful. I just don't want to have to look up this command every time I want to extract a bunch of rars. A context entry would be the perfect compromise between a full fledged GUI and having to enter this in to the terminal every time.
kareempharmacist both of those functions are built in to KDE4, what I asked for was the ability to right click on a folder and click something that would search the directory and any child directories for RAR files and then automatically extract them all with a single click.
What I ended up doing was taking the bash command some one gave me on Kubuntu Forums(I think) and I altered to the Ark Service Menu which I will post below. I am actually going to explore the option to use ark directly and see how it functions. The service menu method I use has 1 flaw. If you make a folder, for example, NEWFILES and inside that folder you have FOLDER1, FOLDER2, and FOLDER3, you can either choose to right click on NEWFILES or select all 3 child folders and then choose to right click and "Search for archives" but if your choose the later method it will launch 3 separate instances of Konsole. If you use the prior method, it only launches a single instances of Konsole and therefore does extraction one by one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.