I have a Solaris 8 tar file containing files with prefixes all starting with /opt/somedir/blahblah... But unfortunately I can't extract the blahblah files to another workstation because I don't have root access to the /opt/ directory...and I can't temporary create /opt/somedir/.
Is there a way to extract the files and in effect ignore the leading /opt/somedir directory?
HISTORY:
Basically, what happen was that I needed to back-up my entire home directory (/opt/somedir/....) to copy to a new box. But the new box's "home" directory structure is setup a little differently compared to the older box-- it's now /export/home/somedir.
Can I use the arch cmd? How in an extract?
Yes, I know I should of been a little more careful by first cding to the /opt/somedir/ directory before creating the tar file!
Thanks ...
Is there a way to extract the files and in effect ignore the leading /opt/somedir directory?
HISTORY:
Basically, what happen was that I needed to back-up my entire home directory (/opt/somedir/....) to copy to a new box. But the new box's "home" directory structure is setup a little differently compared to the older box-- it's now /export/home/somedir.
Can I use the arch cmd? How in an extract?
Yes, I know I should of been a little more careful by first cding to the /opt/somedir/ directory before creating the tar file!
Thanks ...