I have a tar archive which I believe may be corrupted, produced on an HP-UX 10.x box and written to a 4mm DDS-3 tape.
I understand that gnu tar has a -W (--verify) option which will attempt to verify the archive after it has been created. Am I right in saying that this option cannot be used to... (4 Replies)
pls can anyone help me with this script, the script is below, i need the script to get the previous month result every new month , the problem is that the loop has to be automated to always calculate for previous month .
a=`date "+%Y"` #this year to be used
b=$(date "+%Y%m" --date='49 days... (6 Replies)
If you've come across this problem with unzipping/decompressing zips, you might find this helpful:
I was having a little trouble with unzipping (decompressing) tarred archives under OS 10.5 until today. My first attempt was to just simply double-click on the zip file (i.e., example.tar.gz) and... (2 Replies)
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies
7. Post Here to Contact Site Administrators and Moderators
I'm looking to archive a client directory from a CIFS share
There are multiple directories that will be stored in a text file and I'm looking to
create an individual tar archive of each folder in the directory.
I've tried a number of commands to no avail.
Here's what I would like.
... (2 Replies)
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Hi,
The only off-line storage medium I have is DVD. I am trying to back up around 10G of data and if I can achieve a practical solution I will use it more generally.
I am currently considering something along the lines of:
tar --create --multi-volume --tape-length=nnnn <pathspec>
|... (0 Replies)
Discussion started by: MikeGM
0 Replies
LEARN ABOUT HPUX
unshar
UNSHAR(1) General Commands Manual UNSHAR(1)NAME
unshar - unpack a shar file
SYNOPSIS
unshar [ options ] [ file ... ]
DESCRIPTION
Unshar scans mail messages looking for the start of a shell archive. It then passes the archive through a copy of the shell to unpack it.
It will accept multiple files. If no files are given, standard input is used.
OPTIONS
Options have a one letter version starting with - or a long version starting with --. The exception is --help and --version, which does
not have a short version.
--version
Print the version number of the program on standard output, then immediately exits.
--help Print a help summary on standard output, then immediately exits.
-d DIRECTORY --directory=DIRECTORY
Change directory to DIRECTORY before unpacking any files.
-c--overwrite
Passed as an option to the shar file. Many shell archive scripts (including those produced by `shar' 3.40 and newer) accepts a -c
argument to indicate that existing files should be overwritten.
-e--exit-0
This option exists mainly for people who collect many shell archives into a single mail folder. With this option, `unshar' isolates
each different shell archive from the others which have been put in the same file, unpacking each in turn, from the beginning of the
file towards its end. Its proper operation relies on the fact that many shar files are terminated by a `exit 0' at the beginning of
a line.
Option -e is internally equivalent to -E "exit 0".
-E STRING --split-at=STRING
This option works like -e, but it allows you to specify the string that separates archives if `exit 0' isn't appropriate.
For example, noticing that most `.signatures' have a `--' on a line right before them, one can sometimes use `--split-at=--' for
splitting shell archives which lack the `exit 0' line at end. The signature will then be skipped altogether with the headers of the
following message.
-f--force
The same as -c.
SEE ALSO shar(1)DIAGNOSTICS
Any message from the shell may be displayed.
AUTHORS
The shar and unshar programs is the collective work of many authors. Many people contributed by reporting problems, suggesting various
improvements or submitting actual code. A list of these people is in the THANKS file in the sharutils distribution.
REPORTING BUGS
Report bugs to <bug-gnu-utils@gnu.org>. Please put sharutils in the subject line. It helps to spot the message.
September 10, 1995 UNSHAR(1)