Potty-training your tarballs 2

Posted by Jay Phillips Sun, 11 Jun 2006 09:01:04 GMT

So it’s late at night and you’re up reading Slashdot while the source code for that program you thought seemed pretty cool so you’d check it out downloads.

Firefox tells you it’s finished downloading and you begin the old extract, configure, compile, install, run routine you’ve done a hundred times.

And then it happens.

Your neighbors, sleeping in bed, wake to your resounding shriek in the night:

“Ahhh!!! That tarball just crapped all over my home!”

Yes, it happened to you. Don’t feel bad. It’s the moron who didn’t pack his archive in a subfolder’s fault. There’s no way you could have known all those compressed files were going to mix with the dozens of files already in your home directory. No, really — don’t be so hard on yourself.

Potty-train your tarball and have it clean up its mess by typing this:

tar ztf poopypants.tar.gz | xargs rm -r

If rm starts giving you confirmation messages ad nauseam, add the letter f after the -r, but remember — if the tarball contained a subfolder with the same name as an existing folder in your home directory, removing the folder with -rf won’t discriminate between files inside it added by tar and files rightfully there. Careful!

Now to figure out how to change a baby’s diaper with piped Unix commands…

Trackbacks

Use the following link to trackback from your own site:
http://jicksta.com/articles/trackback/5

  1. Hardcore lesbian sex. From Amateur hardcore sex party.
    24 7 hardcore sex. Free hardcore sex videos. Free hardcore sex pics. Galleries of hardcore sex. Hardcore lesbian sex. Hardcore sex nurses. Gape that ass hardcore anal sex and gaping.
Comments

Leave a response

  1. best about 1 year later:

    I’m agree with you.

  2. zvzv about 1 year later:

    zzz

Comments