08-12-2010
Figure it out
Ok. It worked. I simply made a mistake with my directory address in the script. Both options worked. Thanks.
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
I have a pecular problem that I am experiencing. I have a few directories that seems to be missing, however, I can vi the files within them and I can also execute them (script files). For missing, I mean when I issue the "ls" command I don't see anything.
Any help will be greatly... (1 Reply)
Discussion started by: copperUser
1 Replies
2. Shell Programming and Scripting
For example,
/tmp/folder1
includes /tmp/folder1/a /tmp/folder1/b
/tmp/folder2
includes /tmp/c
Is there a command without removing files in /tmp/folder2 first to copy the /tmp/folder1 to /tmp/folder2?
and the result should be
/tmp/folder2 will include only /tmp/folder2/a... (2 Replies)
Discussion started by: lalelle
2 Replies
3. Shell Programming and Scripting
Hi,
1)I have two zip files a.zip and b.zip.
a.zip contains the files a.txt,b.txt and c.txt
b.zip contains the files a.txt,b.txt,d.txt,e.txt
Though some of the filenames in a.zip and b.zip are same, the size is different,i.e., the files are completely different even though their name is same.... (1 Reply)
Discussion started by: donisback
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..
Thanks (3 Replies)
Discussion started by: ammu
3 Replies
5. Shell Programming and Scripting
Hi,
i need to use "scp" to copy a file without overwriting the same in destinations.
any suggestion?
thanks
Sivaji (3 Replies)
Discussion started by: sivarajb
3 Replies
6. Shell Programming and Scripting
Hey,
Can someone pls give me an idea on how to write a shell script for the below requirement.
I am generating lot of .txt files in a unix directory through a etl tool, now I need to write a shell script which will move these files to another directory(\abc\xyz\source), but in the... (2 Replies)
Discussion started by: shruthidwh
2 Replies
7. Shell Programming and Scripting
I have several directories and all those directories have .dat files in them. I want to copy all those .dat files to one directory say "collected_directory"
The problem is I don't want to overwrite files. So, if two file names match, I don't want the old file to be overwritten with a new one.
... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
8. Solaris
Hi,
I am using solaris 10 OS.Please help me out with the commands needed in below two scenarios.
1)How to delete the existing files in the tar file.
suppose i have a main tarfile named application.tar and it contains a file called ingres.tar.
what is the command to remove ingres.tar... (2 Replies)
Discussion started by: muraliinfy04
2 Replies
9. Filesystems, Disks and Memory
I have a lot of binary files I need to copy to a folder. The folder is already filled with files of the same name. Copying on top of the old files takes MUCH longer than if I were to delete the old files then copy the new files to the now-empty folder. This result is specific to one system -... (3 Replies)
Discussion started by: ces55
3 Replies
10. UNIX for Beginners Questions & Answers
i use the split command to split a one terabyte backup file into 10 chunks of 100 GB each. The files are split one after the other. While the files is being split, I will like to scp the files one after the other as soon as the previous one completes, from server A to Server B. Then on server B ,... (2 Replies)
Discussion started by: malaika
2 Replies
LEARN ABOUT CENTOS
scsi_mandat
SCSI_MANDAT(8) SG3_UTILS SCSI_MANDAT(8)
NAME
scsi_mandat - check SCSI device support for mandatory commands
SYNOPSIS
scsi_mandat [--help] [--log] [--quiet] [--verbose] DEVICE
DESCRIPTION
This bash shell script calls several SCSI commands on the given DEVICE. These SCSI commands are considered mandatory (although that varies
a little depending on which standard/draft the DEVICE complies with). The results of each test and a pass/fail count are output.
OPTIONS
Arguments to long options are mandatory for short options as well.
-h, --help
print out the usage message then exit.
-L, --log
the output to stderr (from each SCSI command executed) is appended to a file called 'scsi_mandat.err' in the current working direc-
tory.
-q, --quiet
the amount of output is reduced and typically only the pass/fail count is output.
-v, --verbose
increase level or verbosity.
EXIT STATUS
The exit status of this script is the number of "bad" errors found. So an exit status of 0 means all mandatory SCSI commands worked as
expected.
AUTHORS
Written by D. Gilbert
COPYRIGHT
Copyright (C) 2011-2013 Douglas Gilbert
This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR-
POSE.
SEE ALSO
sg_inq,sg_luns,sg_turs,sg_requests,sg_vpd,sg_senddiag (sg3_utils)
sg3_utils-1.36 May 2013 SCSI_MANDAT(8)