* SUMMARY: tar & placing files in a new directory
@ 1997-01-22 23:30 Colin Brooks
0 siblings, 0 replies; only message in thread
From: Colin Brooks @ 1997-01-22 23:30 UTC (permalink / raw)
To: tru64-unix-managers
Many thanks to the 17 people who have responded so far!
Most of the messages pointed to the same solution; the one from Dick Abraham
summarises them well:
"tar -xvs will strip the leading slashes from the restored path names.
Which will give you what you want
tar -xvP /mnt/giss will remove the /mnt/giss from the restored path names.
Which will also do what you want."
I tried the "tar -xvs" option and I was able to untar the files onto my
/ibm/pe/data/sonomagis directory just fine. It did leave me with a very
long pathname before I got to the data
(/ibm/pe/data/sonomagis/mnt/giss/gisdata/lotlines), but that was okay with
me. I think if I have used the second solution (tar -xvP
/mnt/giss/gisdata), I could have shortened the path name.
Thanks again to this great list,
Colin
****************************************************
Colin Brooks
GIS Program Analyst
Integrated Hardwood Range Management Program
Hopland Research & Extension Center
4070 University Rd.
Hopland, CA 95449
Primary #'s - TEL:(707)744-1270 FAX:(707)744-1040
Work E-mail: cbrooks@nature.berkeley.edu
http://www.pacific.net/~cbrooks/gis1.htm
I'm also found at:
ESPM, University of California - Berkeley
160 Mulford Hall
Berkeley, CA 94720-3114
Secondary #'s - TEL: 510-643-1136 FAX: 510-643-5438
****************************************************
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-01-22 23:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-22 23:30 SUMMARY: tar & placing files in a new directory Colin Brooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox