Sponsored Content
Top Forums Shell Programming and Scripting Problem counting unique disks/slices Post 302553955 by jontjioe on Friday 9th of September 2011 09:34:04 AM
Old 09-09-2011
Ahamed,

This is awesome! It is exactly what I needed. Thank you so much! So I noticed the weird special characters in the last line too. The file is an excerpt from a well known trace file. It is probably incorrect, but as long as I can uniquely identify it as a disk, it will still work for me.

Thank you!
Jonathan
 

10 More Discussions You Might Find Interesting

1. Linux

problem with disks on SAN

Hi I have a linux box attched to a SAN storage from EMC with RAID 5 .I understand that it has 3g cache howver a 20gb file creation takes too much time here are my results any ideas why time dd if=/dev/zero of=disk.img bs=1048576 count=20000 20000+0 records in 20000+0 records out 997.59s... (2 Replies)
Discussion started by: xiamin
2 Replies

2. Linux

Problem for restoring lvm on different disks

Hi all, I have a server running in RH ES4, the SCSI HD are running in RAID 1. I backup the LVM config by using 'vgcfgbackup' and then remove all the HD. I insert another HD (same size & branch but different model) into the machine and run linux rescue to recreate the... (0 Replies)
Discussion started by: donaldfung
0 Replies

3. Shell Programming and Scripting

problem with the script in counting

Hi, I have a script which greps for a word in a file contains records. I grabbed a particular column & sent the colomn values to a file. I need to find each column value, the times it appeared in the file. My script is: grep sceneority <file> | cut -f 6 >> swi With... (4 Replies)
Discussion started by: pradeep_script
4 Replies

4. Solaris

Problem with accessing SAN disks

Hi, I'm having a problem when attempting to define the OCR location for my 10g RAC setup on Solaris 10. I get the following error: The specified shared raw partition /dev/did/rdsk/d1s0 may not have the correct permission. Verify that the partition is owned by Oracle user. As per the Oracle10g... (15 Replies)
Discussion started by: michael.chow
15 Replies

5. Solaris

SAN DISKS - Number of slices ?

Good morning to one and all :-) Thank god its Friday, as its bee na rubbish week for me ! So, a quick question. Disks ! Ive got a few local disks, and a few SAN disks used on my solaris server. Whats confusing me, and Im not sure if there's an issue at the SAN end, or my end, regarding the... (3 Replies)
Discussion started by: sbk1972
3 Replies

6. Shell Programming and Scripting

Counting unique IP in warning log

Hi I have a log that look like this: 12:20:28.522 Connection from IP: 185.164.118.136 Login Failed! 12:20:29.389 Connection from IP: 84.20.182.63 Login Failed! 12:20:30.111 Connection from IP: 80.180.143.79 Login Failed! 12:20:31.038 Connection from IP: 83.226.102.106 Login Failed!... (1 Reply)
Discussion started by: Jotne
1 Replies

7. UNIX for Advanced & Expert Users

Problem while counting number of fields in TAB delimited file

I'm facing a strange problem, please help me out. Here we go. I want to count number of fields in particular file. filename and delimiter character will be passed through parameter. On command prompt if i type following i get 27 as output (which is correct) cat customer.dat | head -1 | awk... (12 Replies)
Discussion started by: vikanna
12 Replies

8. AIX

Interesting Problem! 2 VIOs, One is problematic, assigning disks and resources from the other only

Hi, The scenario is like this: 1.We needed to assign two hdisks to an LPAR 2.SAN team gives us two ldevs 3.One of our VIO is hanging on cfgmgr operation 4. We ran cfgmgr on the smooth VIO. Got the disks and assigned the disks from there to the LPAR.(By passed the other VIO as in didnt run... (11 Replies)
Discussion started by: aixromeo
11 Replies

9. UNIX for Dummies Questions & Answers

partition of slices

Hello, I am using solaris 10 x86. my root and backup slices is having same memory 10 GB and same cylinders numbers . My root and backup cylinders ends at same cylinder number 1031. so for creating a new slice i am giving starting cylinder from 1302 and this is giving me error as "out of range" .... (2 Replies)
Discussion started by: bhargav90
2 Replies

10. Shell Programming and Scripting

Counting Pattern and unique pattern

Hi, I have a log file which amongst other text has these lines: (id is always the same format - ) e.g. <username>user1</username> <name>fdfsdf</name> Multiple other tags <id>A111</id> <username>user2</username> <name>fdfsdf</name> Multiple other tags <id>A222</id>... (1 Reply)
Discussion started by: arsenalfan01
1 Replies
ecattominc(1)															     ecattominc(1)

NAME
ecattominc - convert an ecat format file (version 6.x or 7.x) to a minc format file SYNOPSIS
ecattominc [<options>] <infile> <outfile.mnc> ecattominc [-help] DESCRIPTION
ecattominc will convert an ecat data file (version 6.x or 7.x) to a minc file format Unless the -small_header option is specified, ecattom- inc will conserve the maximum informations from the ecat header and subheader fields which will be respectively stored as attributes of the ecat-main and ecat-subhdr minc variables. By default the whole 3D or 4D volume is converted, however, ecattominc allows for the selection of slice and frame ranges to be copied. The voxel values of the generated minc file are decay corrected, unless the nodecay_correct flag is specified. Finally, blood data file can be inserted within the minc file with the -bloodfile option. OPTIONS
Note that options can be specified in abbreviated form (as long as they are unique) and can be given anywhere on the command line. General options -byte: Write out data as bytes (default). -short: Write out data as short integers. -clobber: Overwrite existing file. -noclobber: Don't overwrite existing file (default). -verbose: List files as they are converted (default) -quiet: Do not list files as they are converted. Command specific options -decay_correct: Do decay correction on images (default). -nodecay_correct: Don't do decay correction. -slices:Range of slices to copy (counting from 0). Default value: -2147483648 -2147483648 -frames: Range of frames to copy (counting from 0). Default value: -2147483648 -2147483648 -frame: Single frame to copy (counting from 0). Default value: -2147483648 -small_header: Copy only basic header information. -all_header: Copy all header information (default). -bloodfile: Insert blood data from this file. Generic options for all commands -help: Print summary of command-line options and abort KNOWN BUGS
No bug listed so far :=) SEE ALSO
minctoecat(1), rawtominc(1), minctoraw(1), dicomtominc(1) AUTHOR
Peter Neelin and Anthonin Reilhac (anthonin.reilhac@cermep.fr) COPYRIGHTS
Copyrights 2005 by Peter Neelin ecattominc(1)
All times are GMT -4. The time now is 01:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy