09-18-2018
This is not an errror, it's an information. tar does this to prevent overwriting when restoring; it does restore to a relative (to your actual working dir) path in lieu of the absolute one.
10 More Discussions You Might Find Interesting
1. HP-UX
Hello, I'm quite new to HP-UX and I stumbeled upon some strange behaviour from tar.
I have a script like this:
find -mtime $days -type f|xargs tar cvf tarfile.tar
and it make me a tar file with files that has been changed in $days.
When i run 'tar tf tarfile.tar' it give me output like... (5 Replies)
Discussion started by: oey2000
5 Replies
2. UNIX for Advanced & Expert Users
Hi,
On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files.
a) /usr/users/oracle/bin
b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies
3. UNIX for Advanced & Expert Users
hi,
I am in a weird situation. I have a parent tarball which contains 2 sub tarballs.
The structure is such :
Parent.tar.gz ---- > child1.tar.gz and child2.tar.gz
I need to get the size of the parent tarball without untaring it
I know that the command is gunzip -c parent.tar.gz | wc -c ... (1 Reply)
Discussion started by: mnanavati
1 Replies
4. Shell Programming and Scripting
Hi,
I'm using a tar command
tar -xOvf /home/mytar.tar
My intention is to extract data in files which are inside various directories,
without extracting files to the disk.
Is this the best way to achieve it?
Thanks,
Chetan (3 Replies)
Discussion started by: chetan.c
3 Replies
5. Shell Programming and Scripting
Hi,
I have tar filw which has multiple directories which contain files.
When i extract using tar -xf the directory structure also get extracted.
I require only files and not directory structures as there will be overhead of moving the files again.
So i searched here and got a solution but... (4 Replies)
Discussion started by: chetan.c
4 Replies
6. UNIX for Advanced & Expert Users
Hi
Somebody must have done this before, but I can't seem to find any answer on my problem.
On HP-UX 11i v3 I have a relatively large tar ball (~120 GB), and I want to create the directory structure only from the archive.
There is no option to make a new archive with only the directory... (3 Replies)
Discussion started by: hpvm_adm
3 Replies
7. Shell Programming and Scripting
#cat a
BAC064DAL
BAC063DAL
BAC056PHX
BAC066DAL
BAC062PHX
BAC062DAL
BAC060DAL
BAC058PHX
BAC054PHX
BAC051PHX
# for i in `cat a`
> do
> tar xvf $a/$a*.tar*
> done
tar: /*.tar*: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: /*.tar*: Cannot... (3 Replies)
Discussion started by: kenshinhimura
3 Replies
8. Shell Programming and Scripting
Hi,
uname -a
SunOS mymac 5.11 11.2 sun4u sparc SUNW,SPARC-Enterprise
I need to tar a folder /tmp/moht but do not want these three folders to be included in the tar file -> savejpg, bmpsave and imgsave
I tried --exclude, -path, -not options but it says bad option
Can you help me with... (3 Replies)
Discussion started by: mohtashims
3 Replies
9. Shell Programming and Scripting
I have a tar file hello.tar which is 95 GB.
hello.tar has many files and folders including some tar files as well.
I wish to create a new tar ball which should maintain only the folder structure of hello.tar and the tar ball within the hello.tar
So basically the idea is to untar... (2 Replies)
Discussion started by: mohtashims
2 Replies
10. Shell Programming and Scripting
Hi all. I'm hitting a problem creating a tar archive in one directory from files located in a different directory. It fails when I replace the absolute paths with variables in the script but works if I just run tar on the cmdln. E.g.
#!/bin/ksh
BASE=$PWD
STAGE=$BASE/stage
LOG=$BASE/log... (4 Replies)
Discussion started by: user052009
4 Replies
LEARN ABOUT DEBIAN
latexml::util::pathname
LaTeXML::Util::Pathname(3pm) User Contributed Perl Documentation LaTeXML::Util::Pathname(3pm)
NAME
"LaTeXML::Util::Pathname" - portable pathname and file-system utilities
DESCRIPTION
This module combines the functionality File::Spec and File::Basename to give a consistent set of filename utilties for LaTeXML. A pathname
is represented by a simple string.
Pathname Manipulations
"$path = pathname_make(%peices);"
Constructs a pathname from the keywords in pieces
dir : directory
name : the filename (possibly with extension)
type : the filename extension
"($dir,$name,$type) = pathname_split($path);"
Splits the pathname $path into the components: directory, name and type.
"$path = pathname_canonical($path);"
Canonicallizes the pathname $path by simplifying repeated slashes, dots representing the current or parent directory, etc.
"$dir = pathname_directory($path);"
Returns the directory component of the pathname $path.
"$name = pathname_name($path);"
Returns the name component of the pathname $path.
"$type = pathname_type($path);"
Returns the type component of the pathname $path.
"$path = pathname_concat($dir,$file);"
Returns the pathname resulting from concatenating the directory $dir and filename $file.
"$boole = pathname_is_absolute($path);"
Returns whether the pathname $path appears to be an absolute pathname.
"$path = pathname_relative($path,$base);"
Returns the path to file $path relative to the directory $base.
"$path = pathname_absolute($path,$base);"
Returns the absolute pathname resulting from interpretting $path relative to the directory $base. If $path is already absolute, it is
returned unchanged.
File System Operations
"$modtime = pathname_timestamp($path);"
Returns the modification time of the file named by $path, or undef if the file does not exist.
"$path = pathname_cwd();"
Returns the current working directory.
"$dir = pathname_mkdir($dir);"
Creates the directory $dir and all missing ancestors. It returns $dir if successful, else undef.
"$dest = pathname_copy($source,$dest);"
Copies the file $source to $dest if needed; ie. if $dest is missing or older than $source. It preserves the timestamp of $source.
"$path = pathname_find($name,%options);"
Finds the first file named $name that exists and that matches the specification in the keywords %options. An absolute pathname is
returned.
If $name is not already an absolute pathname, then the option "paths" determines directories to recursively search. It should be a
list of pathnames, any relative paths are interpreted relative to the current directory. If "paths" is omitted, then the current
directory is searched.
If the option "installation_subdir" is given, it indicates, in addition to the above, a directory relative to the LaTeXML installation
directory to search. This allows files included with the distribution to be found.
The "types" option specifies a list of filetypes to search for. If not supplied, then the filename must match exactly.
"@paths = pathname_findall($name,%options);"
Like "pathname_find", but returns all matching paths that exist.
AUTHOR
Bruce Miller <bruce.miller@nist.gov>
COPYRIGHT
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
perl v5.10.1 2009-06-11 LaTeXML::Util::Pathname(3pm)