Remove devpack4 files
On Oct 11, 2009, at 4:21 AM, Andrej Kastrin wrote:
Dear all, I install development binaries from devpack4 using the command as follows: curl -s http://cran.r-project.org/bin/macosx/tools/devpack4-darwin8-bin4.tar.gz | sudo tar fvxz --overwrite -C Is there any simple solution to remove all installed files or should I do it manually (file by file)?
You can do something like:
sudo bash
files=`tar fvtz devpack4-darwin8-bin4.tar.gz | awk '{print "/"$9}' |
perl -e 'print reverse <>'`
rm -f $files 2>/dev/null
rmdir $files 2>/dev/null
Cheers,
Simon