![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to unzip and extract tar file in single command | darkrainbow | UNIX for Advanced & Expert Users | 6 | 02-28-2008 08:18 PM |
| extract bulk emails into a single flat file | Amruta Pitkar | Shell Programming and Scripting | 1 | 01-21-2007 06:37 PM |
| splitting up of absolute filepath | DILEEP410 | Shell Programming and Scripting | 5 | 01-10-2007 05:45 AM |
| A single file for many commands | zenla15 | Shell Programming and Scripting | 2 | 07-16-2006 01:16 PM |
| Restoring a single file...??? | Jonathan | UNIX for Dummies Questions & Answers | 1 | 05-08-2002 09:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
This is my first post here - I'm hoping I can get some help! I have searched these forums and othersand not getting anything that works. I am trying to extract a single file from a tar archive to a diffierent location than it will default to. For example my tar log shows me ... Code:
a /scratch2/no_archive/nlthoa/input_files/EGIS_EXPORTS/ 0K a /scratch2/no_archive/nlthoa/input_files/EGIS_EXPORTS/README.txt 4K a /scratch2/no_archive/nlthoa/input_files/EGIS_EXPORTS/multi_runs/ 0K a /scratch2/no_archive/nlthoa/input_files/EGIS_EXPORTS/multi_runs/PB0012.run 2K Code:
/scratch2/no_archive/nlthoa/input_files/EGIS_EXPORTS/multi_runs/PB0012.run Code:
/home/nlthoa/tmp The system will not allow me to recreate the original file path, and I do not want the entire contents either. I am working in Solaris 8 (I think) Code:
uname -a SunOS xxxxxx-x-xxxxxx 5.8 Generic_117350-51 sun4u sparc SUNW,Sun-Fire-V440 Thanks, lil' |
|
||||
|
A collegue found a work around - he created a link file in the top level directory (as root) that pointed to some other place, and when I ran the noraml untar, all the data came out as I wanted it.
I agve up trying to get just one file out of the tarball. Thought I'd just post this for the sake of completness. |
|
||||
|
We have worked on some application which was meant to uncompress tar files. Due to security reasons (hopefully you know about tar bombs, don't you?) data extraction (and decompression when input files were *.tar.gz) was made using some open-source JAVA module that can handle *.tar packages. And what is more important - this module can skip the paths.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|