Clean up spilled tar

New Articles

PHP upload with progress bar.

The case of the missing errors.

J2ME Development with the 6600.

You find yourself a wonderfull piece of software. Eager to get started you expand it in your home directory knowing that all well behaved tarballs are supposed to create their own sub directory and expand into it. But then what are all these files with wierd names scatterd across my home directory?

Yes it happens to everybody. In their eagerness to get the product released programmers often forget to create a proper tarball that will expand into a sub directory. This leaves you with countless files on your that need to be moved to the proper place. At first you try to do a sort by date but you find that all the new files have some dates in the past!.

Simple you can create a small shell script that examines the contents of the original tar ball, compare it against the files in the current directory and moves them to a sub directory. Or you can use the script that I created.