From: James Mohr <linux-newbie@jimmo.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Tar Extract from Tape
Date: Tue, 1 Oct 2002 21:53:48 +0200 [thread overview]
Message-ID: <200210012153.48013.linux-newbie@jimmo.com> (raw)
In-Reply-To: <000001c26968$3dd96d90$64fea8c0@pkrausxp>
The problem I see with both the amerpsand and the asterisks is that the shell
expands them before passing them to tar. Using a single quote should
protected them. If you want the entire ./PM65/Orthotic Cat/ directory, try:
tar xvf /dev/rStp0 'PM65/Orthotic Cat/'
This *should* pass the whole phrase as a unit to tar. Anytime you specific a
directory the should be no need to use the asterisk.
Regards,
jimmo
On Tuesday 01 October 2002 18:33, Paul Kraus wrote:
> I am trying to extract the file P723.ind. Now this is on a Sco Box so I
> am crossing my fingers that the syntax is similar to Linux. Here is the
> sniped results for tar tvf /dev/rStp0.
>
> rw-r--r-- 0/0 614400 Aug 08 16:39 2002 ./PM65/Orthotic Cat/Knee &
> Ankle/P722.indd
> rw-r--r-- 0/0 712704 Aug 08 16:36 2002 ./PM65/Orthotic Cat/Knee &
> Ankle/P723.indd
> rw-r--r-- 0/0 794624 Aug 06 16:38 2002 ./PM65/Orthotic Cat/Knee &
> Ankle/P724.indd
> rw-r--r-- 0/0 856064 Aug 12 11:29 2002 ./PM65/Orthotic Cat/Knee &
> Ankle/P725.indd
>
> I have tried the following with the file never being found.
>
> Tar xvf /dev/rStp0 ./PM65/Orthotic\ Cat/Knee\ &\ Ankle/*
> Tar xvf /dev/rStp0 ./PM65/Orthotic\ Cat/Knee\ &\ Ankle/P723.indd
> Tar xvf /dev/rStp0 ./PM65/Orthotic\ Cat/*
> Tar xvf /dev/rStp0 "./PM65/Orthotic Cat/Knee & Ankle/P723.indd"
> Tar xvf /dev/rStp0 "./PM65/Orthotic Cat/Knee & Ankle/*"
>
> I am thinking that tar is having a hard time with "&" which is why I
> tried Cat/*.
>
> Any insights would be good. I have searched google for anything relating
> to special characters and tar as well as long file names. I have read
> the man pages for tar and the info page and can not seem to find out
> where my mistake is.
>
> Paul Kraus
> Network Administrator
> PEL Supply Company
> 216.267.5775 Voice
> 216-267-6176 Fax
> www.pelsupply.com
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
--
---------------------------------------
"Be more concerned with your character than with your reputation. Your
character is what you really are while your reputation is merely what others
think you are." -- John Wooden
---------------------------------------
Be sure to visit the Linux Tutorial: http://www.linux-tutorial.info
---------------------------------------
NOTE: All messages sent to me in response to my posts to newsgroups or forums
are subject to reposting.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
prev parent reply other threads:[~2002-10-01 19:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-01 16:33 Tar Extract from Tape Paul Kraus
2002-10-01 16:45 ` Mike Dresser
2002-10-01 17:00 ` Ray Olszewski
2002-10-01 19:53 ` James Mohr [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200210012153.48013.linux-newbie@jimmo.com \
--to=linux-newbie@jimmo.com \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.