Tar Extract from Tape
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 4 lines · Paul Kraus
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.
Quoted 9 lines
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
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"?
Quoted 21 lines · Paul Kraus
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.inddI 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/*"
Quoted 7 lines
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 [email protected]
-------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
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
Quoted 41 lines · Paul Kraus
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.inddI 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Signature · 14 lines
--------------------------------------- "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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs