09-19-2007
hey
Use 'tar tv' This Lists the files from the default tape device without extracting them.
maybe this will help ya...
jas
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.
For example:
file 1
123
1234
123456
file 2
123
2345
23456
file 3 should have
2345
23456
I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
Discussion started by: blt123
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
How can I work on following request?
Delete all the html files older than 29th November from the path - /dding/ting/tong/unixyang/output (4 Replies)
Discussion started by: tonyvirk
4 Replies
3. UNIX and Linux Applications
Is it possible to update a file in a compressed archive.tgz using the tar app without uncompressing/extracting, update and compressing/creating ?
tar -uvzf archive.tgz ./file.txt
tar: Cannot update compressed archives
Try `tar --help' for more information. (1 Reply)
Discussion started by: brendan76
1 Replies
4. UNIX for Dummies Questions & Answers
Hi Folks,
I have a tar.gz compressed file with me, and I want to know the number of files in the archive without uncompressing it.
Please let me know how I can achieve it.
Regards
RK Veluvali (5 Replies)
Discussion started by: vrk1219
5 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to find all tar and compressed files (say gzip). I'm having to assume that the tar and gzip files may or may not have the correct extension (.tar .gz .tgz etc).
Any help appreciated (2 Replies)
Discussion started by: andyatit
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: bashnewbee
1 Replies
7. Shell Programming and Scripting
Hi All
I have converted a load of files to different formats but I am now left with a folder with loads of differnt files
All of them are called the same, the only differnce is the file extension (Sizes also vary so cannot do anything with MD5)
example
file1.abc
file1.xyz
file2.abc... (2 Replies)
Discussion started by: tofa83
2 Replies
8. Shell Programming and Scripting
HI,
Getting the syntax error " find: missing conjunction" for the below code
D1_DIR=/x/y/z
D1_NAME=file_name
FILE_DIR=pset
for file in `find ${D1_DIR}/${D1_NAME} -name "*\.${FILE_DIR}" /dev/null {} \;`
do
echo $file
done
#Trying to find all the files with *.pset... (5 Replies)
Discussion started by: cvsanthosh
5 Replies
9. UNIX for Dummies Questions & Answers
How can I ensure the folder that I tar and compress is good to be archive in DVD or tape? Must I uncompress and untar the file, or there is any way to tell the integerity of the compressed file before send to archive? I have bad experience on this, which the archive compressed file cold not be... (2 Replies)
Discussion started by: vivien_chu
2 Replies
10. Shell Programming and Scripting
Guys i have 3 files,
but i want to compare and diff only the 2nd column
path=`/home/whois/doms`
for i in `cat domain.tx`
do
whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant
whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies
st(1M) st(1M)
NAME
st - shared tape administration
SYNOPSIS
device_file
DESCRIPTION
The command provides users with a command-line interface to check the status of a shared tape device or to reclaim a shared tape device
from a host system that has failed while holding a reservation on the shared tape device. The command can also be used for the same pur-
pose on shared library robotic devices. To use the command you must have root user id.
Please see examples below for usage.
Options
recognizes the following options and arguments:
Specifies the tape device file or sctl/esctl pass-through device
file for the shared tape/library device. This parameter is mandatory and will report an error if device_file is omitted.
Allows the user to reclaim a shared tape device or shared
library robotic device in the case where a host failed while holding a reservation on the shared device. This option causes
a bus device reset to be issued to the device specified by the option.
Prints out the current status of the shared tape/library
device specified by the option.
RETURN VALUE
returns 0 upon successful completion and 1 otherwise.
EXAMPLES
The following shows three examples of output from the above command.
The above output indicates that the shared device is reserved by another host and is therefore unavailable at this time.
The above output indicates that the shared device is not ready for use at this time.
The above output indicates that the shared device is ready for use at this time.
To reclaim a shared tape/library device from a failed host, the following command can be used:
WARNINGS
The option must be used with care. When reclaiming devices, it must be ensured that the host from which the device is being reclaimed has
in fact failed, as data may be lost as the result of reclaiming a device that is currently in use by another host.
AUTHOR
was developed by Hewlett-Packard.
SEE ALSO
mt(1), scsi(7), scsi_ctl(7).
st(1M)