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.
So today I decided I was tired of dealing with a whole large directory of zip files. Since all the zip files were uniquely named, I figured might as well make a corresponding directory name and unpack each one in there.
Good luck doing that in Winderz. But I'm not in Winderz. I'm on a shell prompt. So what's a nerd to do.
Well, so far I worked it out this way. In bash, I did:
for i in *.zip;do unzip $i -d `echo $i| sed -e 's/.zip//g'`;done
...
Yeah, that's when I started using Linux. Since then I've been on Slackware up to 9.1, and then mainly Redhat from then on, stopping at about RedHat 9 and then jumping back on around Fedora 7, then off again around Fedora 9, and now I'm running a fully upgraded install of Fedora 12. Well, it'll be fully upgraded when I reboot, which I am want to do whenever a kernel or X upgrade occurs. Other than that, it's been six SOLID weeks since I've booted this comp into Windows, and three days as far as my...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.