Michael Hartog

Detailing random personal things since 2008
  • Michael Hartog
  • Blog
  • About
  • Livestream
  • Mini DB App
  • To-do
  • Resumé

Posts Tagged ‘bash’

27 May 2008

Shell script to extract isos from a folder

I had to do this repeatedly manually at work so it took me like 2 minutes to make my first script to do it for me. It was horribly messy and looked something this:

for x in $(ls -1 .); do
mount -t iso9660 -o loop $x temp/;
cp -r temp/* .;
umount temp/;
done;

Which did the job but was horribly messing on doing it more than once with tons of errors and stuff.

When I came home I decided to make it much better. I even included how long it takes to do the whole process, which was harder than the process itself.
Read the rest of this entry »

27 May, 2008 at 22:34 by Michael Hartog

Tags: bash, iso, linux, script, shell
Posted in Computers, random, Technology, Work | 2 Comments »

  • Blogs

    • Kurina
    • Rebecca
    • Veronica
  • Links To Things

    • Idle Thumbs
    • Proxy
    • Tales of Mere Existence
    • XKCD
  • Social

    • Facebook
    • Google+
    • Last.fm
    • Steam
    • Tumblr
    • Twitter
  • Twitter

    • Wouldn't it be a great night for zombies?
      2012/02/03 21:24
    • So now that I found the skill cause my Diablo 3 to lag out, I've just stopped using it and started playing. Very fun times.
      2012/02/03 03:57
    • Finally in the Diablo 3 beta, woo!
      2012/02/01 15:38
    • When exactly has banning books a) actually worked or b) been a good idea?
      2012/01/14 12:02
  • Categories

    • Books (3)
    • Comparisons (11)
    • Computers (20)
    • Gaming (16)
    • Music (4)
    • Politics (2)
    • random (38)
    • School (12)
    • Sports (1)
    • Technology (16)
    • TV (3)
    • Uncategorized (1)
    • Work (5)
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
Michael Hartog's Blog is proudly powered by WordPress and NearlyFreeSpeech.NET
Design & code by Jonk
Entries (RSS) and Comments (RSS).