Computer Tips - How can I use xargs when my file name contain spaces?

Date: 2010apr20 Language: bash OS: Linux Q. How can I use xargs when my file name contain spaces? A. Use:
tar tf file.tar | xargs -d "\n" rm
That will work unless the filenames contain newlines in them. via http://linux.slashdot.org/comments.pl?sid=1623912