Home | FAQ | Server | Presentations | Mailing Lists/Archives | Member Tools | Links | Sponsors | Contact| Ok, I'm looking at this, and it's gotta be staring me straight in the face but I can't see it. Trying to use tar to extract a gz package, to update a webapplication - gallery 2. Want to upgrade to a new version (well, would also like to use this same method to upgrade things like wordpress and other packages). Anyways, the problem I'm hitting is that generally tar.gz files are created so that extracting them, puts them in their own new directory. i.e. tar -xvzf wordpress.tar.gz would extract it into { wordpress/rss.php, wordpress/wp-admin/, wordpress/index.php,....} and I REALLY want to strip that wordpress/ out of that, so it extracts the files into the current directory. What, if there is one, is the tar option for this? I suppose I could just pass the file list through a script (i.e. sed the first part off, then mv the file to the new location), but that's a lot more work than I think would be necessary. I'm sure there's an option I'm just missing in the man page/--help file. Thanks! Jason -- /--------------------------------------|---------------------------\ | Jason McIntosh | CELL: 573-424-7612 | | Webmaster, thinker, programmer, etc. | WORK: 573-884-3865 | | http://poetshome.com/ | | |------------------------------------------------------------------| |"How should I know if it works? That's what beta testers are | |for. I only coded it." | |(Attributed to Linus Torvalds, somewhere in a posting) | \--------------------------------------|---------------------------/ GnuPG Key: http://poetshome.com/about/jmcintosh_mlug.missouri.edu.gpgkey |
_______________________________________________ members mailing list EMAIL:PROTECTED http://mlug.missouri.edu/mailman/listinfo/members