Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Re: undo a tar



Quoth Shawn (Thu 2004-08-05 04:01:23PM +0900):

> I need to undo a tar
> I tried
> tar tfz filename.tar.gz | xargs rm
> 
> rm: cannot remove `OOo_1.1.2_LinuxIntel_install/f_0408': No such file or  
> directory

How about:

for i in `tar tfz filename.tar.gz`; do [ -e "$i" ] && rm "$i"; done

-- 
Josh Glover

Gentoo Developer (http://dev.gentoo.org/~jmglov/)
Tokyo Linux Users Group Listmaster (http://www.tlug.jp/)

GPG keyID 0xDE8A3103 (C3E4 FA9E 1E07 BBDB 6D8B  07AB 2BF1 67A1 DE8A 3103)
gpg --keyserver pgp.mit.edu --recv-keys DE8A3103

Attachment: pgp00003.pgp
Description: PGP signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links