01-20-2005
TAR prob - Guru's please help
I'm trying to tar 3000 files into a single tar file to be extracted on another server. Command I'm using:
find . -name '*cost*' -print| xargs tar -cvf mylist.tar (Note tar is contained on filesystem not tape drive which is what I want)
Above command works fine and displays all 3000+ file archived.
The problem is when i extract the file, it only extacts 34 of the files contained in the tar. Command used to extract:
tar -xvf mylist.tar
When I also query my tar file created (i.e. mylist.tar), it also display only 34files. Command used to display files:
tar -vtf mylist.tar
Any ideas whats I'm doing wrong please as any help would be appreciated to extract all files.
OS - TRU64 ver 4.0f
thanks
Bud.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am trying to install Perl 5.005 on solaris 2.5, following the perl
installation guide in INSTALL file that comes with Perl software
However, according to the installation procedure, it instruct me to to excute "make" command after running the Configure which I did but everytime I excute... (3 Replies)
Discussion started by: hassan2
3 Replies
2. UNIX for Advanced & Expert Users
I installed sun recommended cluster patches for solaris 2.5 on my
solaris 2.5 server and then issued a shutdown -i6 -y -g0 to reboot the server but server failed to come back up.
the server tries to boot up and goes through initialising memory then server freeze.
I try to bring the server up... (7 Replies)
Discussion started by: hassan2
7 Replies
3. UNIX for Advanced & Expert Users
I wanted to know what email app most Sun solaris / unix gurus use ? I have become quite NON microsoft in the last few months in my studying solaris..
thanks
simon2000 (6 Replies)
Discussion started by: simon2000
6 Replies
4. UNIX for Dummies Questions & Answers
Please forgive me if this is the wrong place for this post. I didn't see a good place to post this topic in. :D
I would like to know what's the most popular and reliable Java IDE out there nowadays? A FREE one would be awesome! :D
Thanks for your suggestion!
Cheers! (10 Replies)
Discussion started by: laila63
10 Replies
5. AIX
Hi alls
I don't see any solution and I need to have feedback from other people...
On a test machine (AIX 5.1) I've installed OpenSSH software on it (with openssl, prng, etc...) like is described on IBM AIX Docs. To control the installation I've rebooted the machine and all was ok (CDE was... (15 Replies)
Discussion started by: nymus7
15 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies
7. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
8. What is on Your Mind?
A long time ago, my computer crashed, at that time, I was using Windows98, but
because I was a noob at computers, my friend recommended me apro to fix it for me.
He came, saw the computer, and asked if I had a backup/installation disk
for Windows 98. I said no.
He thought about it for a... (1 Reply)
Discussion started by: vistastar
1 Replies
9. Shell Programming and Scripting
Hey Gurus,
Need help to modify the shell script. I am really new in the Linux/Unix world and dont familiar with shell scripting. SO bascially my script is running a ( curl ) with some endpoints and returning HTTP status code.
Now i have a 50 different endpoints and cant make each and individual... (3 Replies)
Discussion started by: Zach Kadiwal
3 Replies
10. Shell Programming and Scripting
hello,
i'm recompiling some c++ code for OSX and there are some bugs as the configure is not picking up some libs like atlas, pastix, etc, it should be finding either in standard path or with pkgconfig but it's not so i'm rewriting the Makefile. C++ territory is a bit of a stretch with all of... (0 Replies)
Discussion started by: f77hack
0 Replies
LEARN ABOUT CENTOS
tar_append_tree
tar_extract_all(3) C Library Calls tar_extract_all(3)
NAME
tar_extract_all, tar_extract_glob, tar_append_tree - high-level tar archive manipulation functions
SYNOPSIS
#include <libtar.h>
int tar_extract_all(TAR *t, char *prefix);
int tar_extract_glob(TAR *t, char *globname, char *prefix);
int tar_append_tree(TAR *t, char *realdir, char *savedir);
VERSION
This man page documents version 1.2 of libtar.
DESCRIPTION
The tar_extract_all() function extracts all files from the tar archive associated with the TAR handle t into the path named by the prefix
argument.
The tar_extract_glob() function extracts all files matching the given glob pattern from the tar archive associated with the TAR handle t
into the path named by the prefix argument.
The tar_append_tree() function appends all files from the directory tree named by realdir to the tar archive associated with the TAR handle
t. The pathnames stored in the tar archive are modified by replacing realdir with savedir, so that the files will be extracted into
savedir.
RETURN VALUES
On successful completion, these functions will return 0. On failure, they will return -1 and set errno to an appropriate value.
ERRORS
These functions will fail under the same conditions that the tar_skip_regfile(), tar_extract_regfile(), opendir(), lstat(), or
tar_append_file() functions fail.
SEE ALSO
opendir(2), lstat(2), tar_skip_regfile(3), tar_extract_regfile(3), tar_append_file(3)
University of Illinois Jan 2001 tar_extract_all(3)