11-02-2005
I tried your script fragment and it worked for me. I grabbed pretty much the whole root filesystem. The the fragment looks good, so I would expect it to work. Don't know what to tell you.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies
2. UNIX for Advanced & Expert Users
Hi All
Can someone pls guide me if there any utility to compress file on windows & uncompress on vxworks
I tried as -
- compressed some folders on windows ... i created .tar ( to maintain directory structure ) and compressed to .gz format.
- on VxWorks i have uncompressed it to .tar... (1 Reply)
Discussion started by: uday_01
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files.
a) /usr/users/oracle/bin
b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies
4. 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
5. Shell Programming and Scripting
HI,
if I have a tarfile called pmapdata.tar that contains
tar -tvf pmapdata.tar
-rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt
-rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt
-rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies
6. 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
7. UNIX for Dummies Questions & Answers
I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it.
Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem?
tar tvf file1.tar
... (1 Reply)
Discussion started by: vivien_chu
1 Replies
8. UNIX for Dummies Questions & Answers
Lets say I have 100 files. in those files I need to search specific word and I want to tar all those files at once. how can I do that?tar -cvf test.tar |grep house *.*Will it work?
Please wrap all code, files, input & output/errors in CODE tags.
It makes them easier to read and preserves... (2 Replies)
Discussion started by: ded325
2 Replies
9. AIX
Coming from this thread, just wondering if there is an option to check if the Tar of the files/directory will be without any file-errors without actually making the tar.
Scenario:
Let's say you have a directory of 20GB, but you don't have the space to make Tar file at the moment, and you want... (14 Replies)
Discussion started by: filosophizer
14 Replies
LEARN ABOUT DEBIAN
gd_parent_fragment
gd_parent_fragment(3) GETDATA gd_parent_fragment(3)
NAME
gd_parent_fragment -- retrieve the parent fragment of a fragment in a dirfile
SYNOPSIS
#include <getdata.h>
int gd_parent_fragment(const DIRFILE *dirfile, int fragment_index);
DESCRIPTION
The gd_parent_fragment() function queries a dirfile(5) database specified by dirfile and returns the index of the fragment which contains
the INCLUDE directive for the fragment indexed by fragment_index.
Since the primary format specification fragment is not included in any other fragment, passing zero for fragment_index will result in an
error.
RETURN VALUE
On success, gd_parent_fragment() returns the index of the specified fragment's parent. On error, gd_parent_fragment() returns -1 and sets
the dirfile error to a non-zero value. Possible error values are:
GD_E_BAD_DIRFILE
The supplied dirfile was invalid.
GD_E_BAD_INDEX
The supplied index was out of range, or was equal to zero.
The dirfile error may be retrieved by calling gd_error(3). A descriptive error string for the last error encountered can be obtained from
a call to gd_error_string(3).
SEE ALSO
dirfile(5), gd_include(3), gd_open(3), gd_fragmentname(3), gd_nfragments(3)
Version 0.7.0 21 July 2010 gd_parent_fragment(3)