tar help - how to tar to a different directory
guys,
I am having problem with tar.
I have a lot of mplayer skins in .gz format, that I need to extract to /usr/local/share/mplayer/Skins. Given that these *.gz files are in /home/sw, how do I get tar to extract them to /usr...?
I know i need to loop, but do not know the tar switches....
for i in `ls *.gz`
do
tar -xvzf $i -------------------------------> I need help here...
done
bye
|