Undo an untar in the wrong place
tar tfz filename.tar.gz | xargs rmThis command is useful to delete the effects of accidental untarring into the wrong directory.
It works by passing the list of filenames from the stdout of the tar command into xargs, which in turn runs rm with the list of files as arguments. You could, of course, use it to run any command on all the filenames in a tar ball.
Sponsored by BlackBerry
BlackBerry® Enterprise Server Express enables businesses of any size to quickly and easily get started with the BlackBerry solution. It provides advanced BlackBerry smartphone features with no additional software or user license fees, and works with any Internet-enabled BlackBerry data plan or a BlackBerry enterprise data plan. Download now!