12-27-2011
This is the output I am getting all capacity 0. I dint understand if the awk is rading the values to A[i] and B[i] here...please help me undertsandging what exactly is being done here...
SGNAME:dgfdhf
LUN 2
LUN 1
LUN 9
LUN 30
LUN 32
Total Capacity= 0
SGNAME:sadgddhdfab_cluster
LUN 13
LUN 11
LUN 15
Total Capacity= 0
SGNAME:asgdg (sgdg)
LUN 110
LUN 111
LUN 112
LUN 113
LUN 114
LUN 115
LUN 116
Total Capacity= 0
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am trying to add count values from two different files into one file. Could any body please suggest me best command to do this? My problem was as follows:
a.txt b.txt c.txt
10 20 30(needed)
i tried cat a.txt b.txt > c.txt (its not adding the values)
Thanks in advance..
Praveen (8 Replies)
Discussion started by: npk2210
8 Replies
2. Shell Programming and Scripting
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
2 Replies
3. Shell Programming and Scripting
Hello Everyone,
I'm struggiling with backup issues and need to sum up sizes of backup files monthly and add the result to the next month's sum recursively.
For this i have a well working script that i modified as i showed below and this part gives the sum of the file sizes under working... (2 Replies)
Discussion started by: EAGL€
2 Replies
4. Shell Programming and Scripting
I have a file like this. Pls help me to solve this .
(I should look for only Message : 111 and need to print the start time to end time
Need to ignore other type of messages. Ex: if first message is 111 and second message is 000 or anything else then ignore the 2nd one and print start time of the... (1 Reply)
Discussion started by: mnjx
1 Replies
5. Shell Programming and Scripting
i have arq1.txt , like this:
1
2
3
4
5
and another arq2.txt
1
2
3
4
5
how to make this:
2
4 (8 Replies)
Discussion started by: beandj
8 Replies
6. Shell Programming and Scripting
I have several csv files like this:
file1.csv
1 12 1
2 8 9
3 9 2
4 5 9
...
file2.csv
1 0 1
2 2 3
3 4 1
...
file3.csv
1 0 1
2 4 0
...
I want the result like this
1 12 3
2 14 12
3 13 3 (10 Replies)
Discussion started by: frewise
10 Replies
7. Shell Programming and Scripting
Hi All,
I need to print the sum of numbers from different files.
Input files:
file1.out
10
20
30
file2.out
10
20
30 (5 Replies)
Discussion started by: saint2006
5 Replies
8. Shell Programming and Scripting
Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Discussion started by: srikanth_sagi
10 Replies
9. Shell Programming and Scripting
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)
Discussion started by: jiam912
14 Replies
10. Shell Programming and Scripting
unzip -v gives CRC info of each file in a zip(in my case .EAR) file.
# unzip -v my-application.ear
Archive: my-application.ear
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies
LEARN ABOUT SUSE
sg_emc_trespass
SG_EMC_TRESPASS(8) SG3_UTILS SG_EMC_TRESPASS(8)
NAME
sg_emc_trespass - Changes ownership of a LUN from another Service-Processor to this one.
SYNOPSIS
sg_emc_trespass [-d] [-hr] [-s] [-V] DEVICE
DESCRIPTION
sg_emc_trespass sends an EMC-specific Trespass Command to the DEVICE with the selected options. This Mode Select changes the ownership of
the LUN of the device from another Service-Processor to the one the command was received on.
OPTIONS
Arguments to long options are mandatory for short options as well.
-d outputs some extra debug information associated with executing this command
-hr Sets the 'Honor Reservation' bit in the command. If set, the trespass will only succeed to change the ownership from the Peer SP if
the Peer SP does not have an outstanding SCSI reservation for the LUN. By default, the reservation state will be ignored.
-s Send the short version of the trespass command instead of the long version. The short version is supported on the EMC FC5300, FC4500
and FC4700. The long version (default) is supported on the CLARiiON CX and AX family arrays.
-V print out version string then exit.
In the 2.4 series of Linux kernels the DEVICE must be a SCSI generic (sg) device. In the 2.6 series block devices (e.g. SCSI disks and DVD
drives) can also be specified. For example "sg_start 0 /dev/sda" will work in the 2.6 series kernels.
EXIT STATUS
The exit status of sg_emc_trespass is 0 when it is successful. Otherwise see the sg3_utils(8) man page.
AUTHOR
Written by Lars Marowsky-Bree, based on sg_start.
REPORTING BUGS
Report bugs to <dgilbert at interlog dot com>.
COPYRIGHT
Copyright (C) 2004 Lars Marowsky-Bree, Douglas Gilbert.
This software is distributed under the GPL version 2. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR-
POSE.
sg3_utils-1.23 January 2007 SG_EMC_TRESPASS(8)