Image 01
profile-image

j6cubic

Hans Hansen
Home KIOSlave (idea)

Various KDE 1.-4. Improvements by djworld 25 comments

There's always XUL - although that would require Gecko. - Jul 09 2004
KDE Unballer

Dolphin Service Menus by maitre 23 comments

I like the unball script, it makes managing archives easier than it was on Windows. But there is one thing that's bothering me: zip files get unzipped into folders with names like zip-filename.zip, which is quite unergonomic when you're doing everything in the Konsole.

I suggest the following change to the script, which makes it handle zip archives without the need for ugly folders:

Replace this
*.zip)
echo -ne "Found zip, unballing $FILE...\n"
unzip -qq -d zip-$FILE $FILE
;;
*.ZIP)
echo -ne "Found ZIP, unballing $FILE...\n"
unzip -qq -d zip-$FILE $FILE
;;

with this
*.zip)
echo -ne "Found zip, unballing $FILE...\n"
unzip -qq -d `echo "$FILE" |sed "s/\.zip$//"` $FILE
;;
*.ZIP)
echo -ne "Found ZIP, unballing $FILE...\n"
unzip -qq -d `echo "$FILE" |sed "s/\.ZIP$//"` $FILE
;;

This makes unball turn filename.zip into filename/ instead of zip-filename.zip/. - Jul 01 2004