I'm not a Perl monk (just learning for now), but I believe that the match operator =~ does not modify the left operand $acr.
The whole expression $acr=~/\b\w/g does return a value, scalar value or list value depending on the context.
Since print provides an array context, if you do
then all matches are sent to stdout.
I am passing argument 1-13 to a sh file.
I want to parse the string and the get the numbers on either side of "-" in two different variables.
I am not familiar with unix .. how can i do this? (3 Replies)
String example:
/vmfs/volumes/46000471-71d7c414-8f74-0013210cddc3/gistst/gistst.vmx
What I would like to do is create a variable and save gistst in it.
I thought if I could create an array and split it by '/'
then I could use the 4th array element or if they was a way to do a... (13 Replies)
how can i remove the special characters
hi iam print the string variable .
suppse:
while(str!=NULL)
printf("******* %s ********** %d ",str,strlen(str));
output as:
****srinu ******** 5
****
phani******** 63
****srinu ******** 5
****
phani******** 63
so my problem is how can i... (3 Replies)
hi
i am new to Shell scripting
i have a string "hostName=lpdma520_dev_ipc_us_aexp_com"
now i need to parse the string as "var1=lpdma520"
please help (7 Replies)
Hey guys,
I have this file generated by me... i want to create some HTML output from it.
The problem is that i am really confused about how do I go about reading the file.
The file is in the following format:
TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Hello All,
I have a case, wherein I have a string of the format
"attr1=value1 attr2=value2 attr3=value3 attr4=value4"
How do I extract the value associated with for a given attributename. For eg. I need to get a value of "value2" when I give an input for attribute name as "attr2". Note, each... (10 Replies)
Hi,
name=VDSL_TTV_ HN_SUB create coid=MA5603U phone=5678 portpolicy=APortSelectionPolicy rfu10=TTV rfu3=Dot1q sz7_portmode=VDSL2 rfu5=1234 srprofile.sy_profname=$ADSL_TTV_SubProfile1
I have a line like this. Its a single line.I need the output as
name=VDSL_TTV_ HN_SUB create... (1 Reply)
Hi,
name=VDSL_TTV_ HN_SUB create coid=MA5603U phone=5678 portpolicy=APortSelectionPolicy rfu10=TTV rfu3=Dot1q sz7_portmode=VDSL2 rfu5=1234 srprofile.sy_profname=$ADSL_TTV_SubProfile1
I have a line like this. Its a single line.I need the output as
name=VDSL_TTV_ HN_SUB create... (6 Replies)
for i in `cat list`;do lol=`curl -m 2 -s ${i} | grep 'class=info' | cut -d '>' -f14 | cut -d '<' -f1 | sed '/^$/d'`; if ;then echo "$i,$lol" >> dirty; echo "$i,$lol";fi; done
cut: you must specify a list of bytes, characters, or fields
Try `cut --help' for more information.
it gave me that... (0 Replies)
Hi everyone,
I am working on fetchmail + procmail to filter mails and I am having problem with parsing a long line in the body of the email.
Could anyone help me construct a reg exp for this string below. It needs to match exactly as this string.
GetRyt... (4 Replies)
Discussion started by: cwiggler
4 Replies
LEARN ABOUT DEBIAN
dchist
DCHIST(1) DICOM PS3 - DICOM image statistics DCHIST(1)NAME
dchist - ACR/NEMA DICOM PS3 ... DICOM PS3 - DICOM image statistics
SYNOPSIS
dchist [ -h|histogram ] [ -csv ] [ -withhighbits|highbitsonly ] [ -v|verbose ] [ -filename ]
DESCRIPTION
dchist reads the named dicom or acr-nema input file and describes the statistics of the image pixel data. The primary intent is to deter-
mine the zero order entropy of the image.
The description and verbose output go to standard error.
The basic input switches are described in dcintro(1). Options specific to this program are:
-h|histogram
Display table of pixel value, frequency, probability, contribution to zero order entropy, and cumulative zero order entropy. May
generate a LOT of output !
-csv
Display only a comma separated value pair of pixel value and frequency, one line per value, e.g., for import into a statistical pro-
gram or spreadsheet
-withhighbits
Include as well the values that are above Bits Stored and within Bits Allocated, such as might be overlay bits (regardless of
whether or not there are any 60xx group elements).
-highbitsonly
Use instead the values that are above Bits Stored and within Bits Allocated, such as might be overlay bits, and treat all valid
pixel values below Bits Stored inclusive as zero (regardless of whether or not there are any 60xx group elements).
-v|verbose
Display byte offset from file start and message start, in hexadecimal, and dump contents while reading and once read.
-filename
Show the name of the file supplied in the arguments; a hyphen will be reported if no filename was supplied.
ENVIRONMENT EXAMPLES
% dchist expmeta.dc3
9.02366 Zero order entropy (bits per pixel)
0x0 Smallest symbol value
0 Smallest symbol length (bits)
0x6e9 Largest symbol value
11 Largest symbol length (bits)
% dchist -h expmeta.dc3
[0x0] 392 p=0.00598145 e=0.0441747 cum=0.0441747
...
[0x6e9] 1 p=1.52588e-05 e=0.000244141 cum=9.02366
9.02366 Zero order entropy (bits per pixel)
0x0 Smallest symbol value
0 Smallest symbol length (bits)
0x6e9 Largest symbol value
11 Largest symbol length (bits)
FILES SEE ALSO dcstats(1), dcintro(1)AUTHOR
Copyright (C) 1993-2010. David A. Clunie DBA PixelMed Publishing. All rights reserved.
BUGS DICOM PS3 20 August 2007 DCHIST(1)