Ask a Question related to UNIX Programming, Design and Development.
-
LHradowy #1
tar question
I have the following...
rgdb
with...
db1
db2
db3
db4
db5
Within the rgdb directory.
I want to tar all that is under the rgdb directory (recursive) but not the
db5 directory. This is where I want to put the tar file.
I want to run this from a script.
I did not see any examples in the man pages. And I cant seem to get an
handle around this one...
Any help..
LHradowy Guest
-
Newbie Question: Biz Card Template Question
Hi, I got the Pagemaker PlugIn - I am using one of the templates for Business Cards - the elements appear to be grouped (bound box all around when I... -
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you
<RonGrossi382872@yahoo.com> wrote in message news:1114393703.900419.199790@f14g2000cwb.googlegroups.com... This is the most important question of... -
LHradowy #2
tar question
I have the following...
rgdb
with...
db1
db2
db3
db4
db5
Within the rgdb directory.
I want to tar all that is under the rgdb directory (recursive) but not the
db5 directory. This is where I want to put the tar file.
I want to run this from a script.
I did not see any examples in the man pages. And I cant seem to get an
handle around this one...
Any help..
LHradowy Guest
-
Barry Margolin #3
Re: tar question
In article <AFmOa.6378$V8.3982@news1.mts.net>,
LHradowy <laura.hradowy@NOSPAM.mts.ca> wrote:tar cf db5/file.tar db1 db2 db3 db4>I have the following...
>rgdb
>with...
>db1
>db2
>db3
>db4
>db5
>Within the rgdb directory.
>I want to tar all that is under the rgdb directory (recursive) but not the
>db5 directory. This is where I want to put the tar file.
>I want to run this from a script.
--
Barry Margolin, [email]barry.margolin@level3.com[/email]
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Barry Margolin Guest
-
Barry Margolin #4
Re: tar question
In article <AFmOa.6378$V8.3982@news1.mts.net>,
LHradowy <laura.hradowy@NOSPAM.mts.ca> wrote:tar cf db5/file.tar db1 db2 db3 db4>I have the following...
>rgdb
>with...
>db1
>db2
>db3
>db4
>db5
>Within the rgdb directory.
>I want to tar all that is under the rgdb directory (recursive) but not the
>db5 directory. This is where I want to put the tar file.
>I want to run this from a script.
--
Barry Margolin, [email]barry.margolin@level3.com[/email]
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Barry Margolin Guest
-
Hubert Feyrer #5
Re: tar question
In comp.unix.misc LHradowy <laura.hradowy@nospam.mts.ca> wrote:
Well, just use some basic Unix shell lines:> I have the following...
> rgdb
> with...
> db1
> db2
> db3
> db4
> db5
> Within the rgdb directory.
> I want to tar all that is under the rgdb directory (recursive) but not the
> db5 directory. This is where I want to put the tar file.
> I want to run this from a script.
>
> I did not see any examples in the man pages. And I cant seem to get an
> handle around this one...
tar cf rgdb/db5/bla.tar `ls -d rgdb/*/. | grep -v rgdb/db5/`
.... or so.
- Hubert
--
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> [url]http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html[/url]
* Setup -> [url]http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html[/url]
Of course with your #1 IPv6 ready operating system -> [url]http://www.NetBSD.org/[/url]
Hubert Feyrer Guest
-
Hubert Feyrer #6
Re: tar question
In comp.unix.misc LHradowy <laura.hradowy@nospam.mts.ca> wrote:
Well, just use some basic Unix shell lines:> I have the following...
> rgdb
> with...
> db1
> db2
> db3
> db4
> db5
> Within the rgdb directory.
> I want to tar all that is under the rgdb directory (recursive) but not the
> db5 directory. This is where I want to put the tar file.
> I want to run this from a script.
>
> I did not see any examples in the man pages. And I cant seem to get an
> handle around this one...
tar cf rgdb/db5/bla.tar `ls -d rgdb/*/. | grep -v rgdb/db5/`
.... or so.
- Hubert
--
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> [url]http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html[/url]
* Setup -> [url]http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html[/url]
Of course with your #1 IPv6 ready operating system -> [url]http://www.NetBSD.org/[/url]
Hubert Feyrer Guest
-
Fletcher Glenn #7
Re: tar question
LHradowy wrote:
tar cvf repository ./rgdb/db1 ./rgdb/db2 ./rgdb/db3 ./rgdb/db4>
> I have the following...
> rgdb
> with...
> db1
> db2
> db3
> db4
> db5
> Within the rgdb directory.
> I want to tar all that is under the rgdb directory (recursive) but not the
> db5 directory. This is where I want to put the tar file.
> I want to run this from a script.
>
> I did not see any examples in the man pages. And I cant seem to get an
> handle around this one...
> Any help..
--
Fletcher Glenn
email [email]f-g-l-e-n-n@quest.com[/email] (remove the dashes)
Fletcher Glenn Guest
-
Fletcher Glenn #8
Re: tar question
LHradowy wrote:
tar cvf repository ./rgdb/db1 ./rgdb/db2 ./rgdb/db3 ./rgdb/db4>
> I have the following...
> rgdb
> with...
> db1
> db2
> db3
> db4
> db5
> Within the rgdb directory.
> I want to tar all that is under the rgdb directory (recursive) but not the
> db5 directory. This is where I want to put the tar file.
> I want to run this from a script.
>
> I did not see any examples in the man pages. And I cant seem to get an
> handle around this one...
> Any help..
--
Fletcher Glenn
email [email]f-g-l-e-n-n@quest.com[/email] (remove the dashes)
Fletcher Glenn Guest
-
Joerg Schilling #9
Re: tar question
In article <AFmOa.6378$V8.3982@news1.mts.net>,
LHradowy <laura.hradowy@NOSPAM.mts.ca> wrote:star -c -V pat=db5* -C rgdb . > /tmp/somfile.tar>I have the following...
>rgdb
>with...
>db1
>db2
>db3
>db4
>db5
>Within the rgdb directory.
>I want to tar all that is under the rgdb directory (recursive) but not the
>db5 directory. This is where I want to put the tar file.
>I want to run this from a script.
[url]ftp://ftp.berlios.de/pub/star[/url]
[url]http://www.blastwave.org/packages.php[/url]
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
[email]js@cs.tu-berlin.de[/email] (uni) If you don't have iso-8859-1
[email]schilling@fokus.fraunhofer.de[/email] (work) chars I am J"org Schilling
URL: [url]http://www.fokus.fraunhofer.de/usr/schilling[/url] [url]ftp://ftp.berlios.de/pub/schily[/url]
Joerg Schilling Guest
-
Joerg Schilling #10
Re: tar question
In article <AFmOa.6378$V8.3982@news1.mts.net>,
LHradowy <laura.hradowy@NOSPAM.mts.ca> wrote:star -c -V pat=db5* -C rgdb . > /tmp/somfile.tar>I have the following...
>rgdb
>with...
>db1
>db2
>db3
>db4
>db5
>Within the rgdb directory.
>I want to tar all that is under the rgdb directory (recursive) but not the
>db5 directory. This is where I want to put the tar file.
>I want to run this from a script.
[url]ftp://ftp.berlios.de/pub/star[/url]
[url]http://www.blastwave.org/packages.php[/url]
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
[email]js@cs.tu-berlin.de[/email] (uni) If you don't have iso-8859-1
[email]schilling@fokus.fraunhofer.de[/email] (work) chars I am J"org Schilling
URL: [url]http://www.fokus.fraunhofer.de/usr/schilling[/url] [url]ftp://ftp.berlios.de/pub/schily[/url]
Joerg Schilling Guest
-
Joerg Schilling #11
Re: tar question
In article <becvv4$3nlsq$1@ID-180809.news.dfncis.de>,
Hubert Feyrer <hubert@feyrer.de> wrote:Sounds prone to problems.....>In comp.unix.misc LHradowy <laura.hradowy@nospam.mts.ca> wrote:>>> I have the following...
>> rgdb
>> with...
>> db1
>> db2
>> db3
>> db4
>> db5
>> Within the rgdb directory.
>> I want to tar all that is under the rgdb directory (recursive) but not the
>> db5 directory. This is where I want to put the tar file.
>> I want to run this from a script.
>>
>> I did not see any examples in the man pages. And I cant seem to get an
>> handle around this one...
>Well, just use some basic Unix shell lines:
>tar cf rgdb/db5/bla.tar `ls -d rgdb/*/. | grep -v rgdb/db5/`
>... or so.
If the only reason for excluding the directory db5, is to avoid that the
tar archive becomes part of itself, just use star. Star will detect the
archive and auto-exclude it from the list of files that go into the archive:
star -c f=db5/xx.tar .
[url]ftp://ftp.berlios.de/pub/star[/url]
[url]http://www.blastwave.org/packages.php[/url]
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
[email]js@cs.tu-berlin.de[/email] (uni) If you don't have iso-8859-1
[email]schilling@fokus.fraunhofer.de[/email] (work) chars I am J"org Schilling
URL: [url]http://www.fokus.fraunhofer.de/usr/schilling[/url] [url]ftp://ftp.berlios.de/pub/schily[/url]
Joerg Schilling Guest
-
Joerg Schilling #12
Re: tar question
In article <becvv4$3nlsq$1@ID-180809.news.dfncis.de>,
Hubert Feyrer <hubert@feyrer.de> wrote:Sounds prone to problems.....>In comp.unix.misc LHradowy <laura.hradowy@nospam.mts.ca> wrote:>>> I have the following...
>> rgdb
>> with...
>> db1
>> db2
>> db3
>> db4
>> db5
>> Within the rgdb directory.
>> I want to tar all that is under the rgdb directory (recursive) but not the
>> db5 directory. This is where I want to put the tar file.
>> I want to run this from a script.
>>
>> I did not see any examples in the man pages. And I cant seem to get an
>> handle around this one...
>Well, just use some basic Unix shell lines:
>tar cf rgdb/db5/bla.tar `ls -d rgdb/*/. | grep -v rgdb/db5/`
>... or so.
If the only reason for excluding the directory db5, is to avoid that the
tar archive becomes part of itself, just use star. Star will detect the
archive and auto-exclude it from the list of files that go into the archive:
star -c f=db5/xx.tar .
[url]ftp://ftp.berlios.de/pub/star[/url]
[url]http://www.blastwave.org/packages.php[/url]
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
[email]js@cs.tu-berlin.de[/email] (uni) If you don't have iso-8859-1
[email]schilling@fokus.fraunhofer.de[/email] (work) chars I am J"org Schilling
URL: [url]http://www.fokus.fraunhofer.de/usr/schilling[/url] [url]ftp://ftp.berlios.de/pub/schily[/url]
Joerg Schilling Guest
-
Vincent Smeets #13
Re: tar question
Hallo,
I would use the fillowing commands:
$ echo rgdb/db5 >/tmp/exclude.$$
$ tar cXf /tmp/exclude.$$ rgdb/db5/dump.tar rgdb
$ rm -f /tmp/exclude.$$
With the X parameter, you can define a file containing all the names of
files and directories that have to be excluded from the tar file (see the
manual pages).
Vincent
"LHradowy" <laura.hradowy@NOSPAM.mts.ca> wrote in message
news:AFmOa.6378$V8.3982@news1.mts.net...> I have the following...
> rgdb
> with...
> db1
> db2
> db3
> db4
> db5
> Within the rgdb directory.
> I want to tar all that is under the rgdb directory (recursive) but not the
> db5 directory. This is where I want to put the tar file.
> I want to run this from a script.
>
> I did not see any examples in the man pages. And I cant seem to get an
> handle around this one...
> Any help..
>
>
>Vincent Smeets Guest
-
Vincent Smeets #14
Re: tar question
Hallo,
I would use the fillowing commands:
$ echo rgdb/db5 >/tmp/exclude.$$
$ tar cXf /tmp/exclude.$$ rgdb/db5/dump.tar rgdb
$ rm -f /tmp/exclude.$$
With the X parameter, you can define a file containing all the names of
files and directories that have to be excluded from the tar file (see the
manual pages).
Vincent
"LHradowy" <laura.hradowy@NOSPAM.mts.ca> wrote in message
news:AFmOa.6378$V8.3982@news1.mts.net...> I have the following...
> rgdb
> with...
> db1
> db2
> db3
> db4
> db5
> Within the rgdb directory.
> I want to tar all that is under the rgdb directory (recursive) but not the
> db5 directory. This is where I want to put the tar file.
> I want to run this from a script.
>
> I did not see any examples in the man pages. And I cant seem to get an
> handle around this one...
> Any help..
>
>
>Vincent Smeets Guest
-
LHradowy #15
Re: tar question
How would I compress it at the same time, when I try to do a tar zcvf, it> I have the following...
> rgdb
> with...
> db1
> db2
> db3
> db4
> db5
> Within the rgdb directory.
> I want to tar all that is under the rgdb directory (recursive) but not the
> db5 directory. This is where I want to put the tar file.
> I want to run this from a script.
>
> I did not see any examples in the man pages. And I cant seem to get an
> handle around this one...
> Any help..
does not recognize the -z option...
LHradowy Guest
-
LHradowy #16
Re: tar question
How would I compress it at the same time, when I try to do a tar zcvf, it> I have the following...
> rgdb
> with...
> db1
> db2
> db3
> db4
> db5
> Within the rgdb directory.
> I want to tar all that is under the rgdb directory (recursive) but not the
> db5 directory. This is where I want to put the tar file.
> I want to run this from a script.
>
> I did not see any examples in the man pages. And I cant seem to get an
> handle around this one...
> Any help..
does not recognize the -z option...
LHradowy Guest
-
Joerg Schilling #17
Re: tar question
In article <LzBOa.8114$V8.5450@news1.mts.net>,
LHradowy <laura.hradowy@NOSPAM.mts.ca> wrote:
The -z option is only recognised by GNU tar or star>How would I compress it at the same time, when I try to do a tar zcvf, it
>does not recognize the -z option...
[url]ftp://ftp.berlios.de/pub/star[/url]
[url]http://www.blastwave.org/packages.php[/url]
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
[email]js@cs.tu-berlin.de[/email] (uni) If you don't have iso-8859-1
[email]schilling@fokus.fraunhofer.de[/email] (work) chars I am J"org Schilling
URL: [url]http://www.fokus.fraunhofer.de/usr/schilling[/url] [url]ftp://ftp.berlios.de/pub/schily[/url]
Joerg Schilling Guest
-
Joerg Schilling #18
Re: tar question
In article <LzBOa.8114$V8.5450@news1.mts.net>,
LHradowy <laura.hradowy@NOSPAM.mts.ca> wrote:
The -z option is only recognised by GNU tar or star>How would I compress it at the same time, when I try to do a tar zcvf, it
>does not recognize the -z option...
[url]ftp://ftp.berlios.de/pub/star[/url]
[url]http://www.blastwave.org/packages.php[/url]
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
[email]js@cs.tu-berlin.de[/email] (uni) If you don't have iso-8859-1
[email]schilling@fokus.fraunhofer.de[/email] (work) chars I am J"org Schilling
URL: [url]http://www.fokus.fraunhofer.de/usr/schilling[/url] [url]ftp://ftp.berlios.de/pub/schily[/url]
Joerg Schilling Guest



Reply With Quote

