All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Tar Extract from Tape
@ 2002-10-01 16:33 Paul Kraus
  2002-10-01 16:45 ` Mike Dresser
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paul Kraus @ 2002-10-01 16:33 UTC (permalink / raw
  To: linux-newbie

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tar Extract from Tape
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Mike Dresser @ 2002-10-01 16:45 UTC (permalink / raw
  To: Paul Kraus; +Cc: linux-newbie

On Tue, 1 Oct 2002, 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
>

tar xvf /dev/rStp0 PM65/Orthotic\ Cat/Knee\ \&\ Ankle/P723.indd

Your tar might be stripping off the ./ part, or need it stripped off.
Also, escape the & character.


-
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tar Extract from Tape
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Ray Olszewski @ 2002-10-01 17:00 UTC (permalink / raw
  To: Paul Kraus, linux-newbie

I'm a bit fuzzy on this one too, Paul. But I notice that you did not try 
this variant:

         Tar xvf /dev/rStp0 ./PM65/Orthotic\ Cat/Knee\ \&\ Ankle/*

I don't know that escaping the & character will work, but it is the obvious 
thing to try (since bash at least will normally interpret it as the 
"detach" command).

If not ... does whatever shell you use on the SCO system support tab 
completion? If it does, try entering

         cd ./PM65/Orthotic\ Cat/Knee

then tab completing, to see how SCO's shell wants you to represent this 
directory name.

And does SCO really use "Tar" rather than "tar"?

At 12:33 PM 10/1/02 -0400, 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.




--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski					-- Han Solo
Palo Alto, California, USA			  ray@comarre.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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Tar Extract from Tape
  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
  2 siblings, 0 replies; 4+ messages in thread
From: James Mohr @ 2002-10-01 19:53 UTC (permalink / raw
  To: linux-newbie

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-10-01 19:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.