Michael Hartog

Detailing random internet junk since 2008
  • Home
  • About
  • To-do

Posts Tagged ‘script’

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, Technology, Work, random | 2 Comments »

  • Blogs

    • Game Girl
    • James Gunn
    • Rebecca
    • Veronica
  • Links

    • Idle Thumbs
    • Tales of Mere Existence
    • XKCD
  • Twitter

    • :( Starcraft 2 trial finished, now I have to wait for Tuesday night. Link 3 hours ago
    • Took my sister out to see Inception last night. Great movie and surprised that I waited 2 weeks and still didn't get anything spoiled. Link 13 hours ago
    • Twitter presence diminished while I wait to get my N1 back :( Link 2010/07/30
    • @LiruWilkowski Love me some Community :D Link 2010/07/30
  • Categories

    • Books (2)
    • Comparisons (7)
    • Computers (18)
    • Gaming (11)
    • Music (2)
    • Politics (1)
    • random (34)
    • School (12)
    • Technology (15)
    • 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).