LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Raveolution
User Name
Password

Notices


Rate this Entry

Script madness! Or, why I love the shell prompt

Posted 03-21-2010 at 08:50 PM by Raveolution

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

And it seems to have worked.

This is too cool. Again.
Posted in Uncategorized
Views 1830 Comments 2
« Prev     Main     Next »
Total Comments 2

Comments

  1. Old Comment
    GNU/Linux shell puts the Windoze command prompt to shame. Here is an example from tonight. Downloaded some tunes from Amazon, mp3 stored in sub folders in AmazonMP3. Using gnu_pod the line....

    gnu_pod ~/Music/AmazonMP3/*/*.mp3 && mktunes

    did the job... piece of cake, every mp3 on the iPod. Too cool.

    I'm with you 100%...
    Posted 03-24-2010 at 03:58 PM by dsmyth dsmyth is offline
  2. Old Comment
    Quote:
    Originally Posted by dsmyth View Comment
    GNU/Linux shell puts the Windoze command prompt to shame. Here is an example from tonight. Downloaded some tunes from Amazon, mp3 stored in sub folders in AmazonMP3. Using gnu_pod the line....

    gnu_pod ~/Music/AmazonMP3/*/*.mp3 && mktunes

    did the job... piece of cake, every mp3 on the iPod. Too cool.

    I'm with you 100%...
    Hmmm... where did you get gnu_pod from, by the way?
    Posted 03-25-2010 at 12:43 AM by Raveolution Raveolution is offline
 

  



All times are GMT -5. The time now is 05:50 PM.

Main Menu
Advertisement
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