06-18-2014
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do i increase the timeout period of a telnet session? (4 Replies)
Discussion started by: Nadeem Mistry
4 Replies
2. Shell Programming and Scripting
I need to keep track of this output
echo "dis chs(*)" | runmqsc | grep RUNNING | wc -l
I need to record that count once an hour 24 hours a day and write to a file with the date and time it was run. Any idea on how to do this. (5 Replies)
Discussion started by: csaunders
5 Replies
3. Shell Programming and Scripting
hello,
I have the following basic script which input the period, but I would like to output is period -1.. how?
echo Please input period (yyyymm):
read PERIOD
OUTPUT=$PERIOD -1
echo " you request period -1 is $OUT"
input 200705
output 200704
input 200701
output 200612
The above... (4 Replies)
Discussion started by: happyv
4 Replies
4. Shell Programming and Scripting
Hello,
I'm able to trim down the log message to "192.168.1.0.", but can't get rid off the last period.
Can any one help me on the syntax to get rid of the last period?
Basically, I want "192.168.1.0" instead of "192.168.1.0."
Thanks, (4 Replies)
Discussion started by: dannytrinh
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
My apologies if this question is so trivial ... I guess there really is a room for dummies ... :o
Anyway, just wanting to know if someone can please explain what the dot (.) infront of the command or script does and why it works and does not work in the following?
... (1 Reply)
Discussion started by: newbie_01
1 Replies
6. HP-UX
Hi everyone,
I want to use grep to search a patern in a folder. But the folder contains millions of files which makes a big delay if I want to search all the files in the folder. I have been trying to use grep to search the last 10 days of all the files. but no success yet! could you advice? ... (2 Replies)
Discussion started by: messi777
2 Replies
7. Shell Programming and Scripting
i need a text file which contains all dates between given period i.e 01.05.2011 to 12.06.2011
Pls help (1 Reply)
Discussion started by: suryanarayana
1 Replies
8. Shell Programming and Scripting
stupid question: trying to use sed to do the following...
$ echo '12345' | sed 's/./&./g'
1.2.3.4.5.
needed this instead: 1.2.3.4.5 but how? please advise (7 Replies)
Discussion started by: ux4me
7 Replies
9. Shell Programming and Scripting
I need to add a newline after every period.
Here is some sample text.
The mechanisms for this type of conditioning are probably the same in humans. According to PET scans on young adults, when pairing a stimulus with an airpuff produces a conditioned eye blink, activity increases in the... (4 Replies)
Discussion started by: danbroz
4 Replies
10. Shell Programming and Scripting
All,
How to get the list of files through a unix command which exists / created / updated between 8 PM to 11:59 PM from a particular location.
Regards
Oracle User (3 Replies)
Discussion started by: Oracle_User
3 Replies
LEARN ABOUT DEBIAN
dctopnm
DCTOPNM(1) DICOM PS3 - DICOM image to PNM file DCTOPNM(1)
NAME
dctopnm - ACR/NEMA DICOM PS3 ... DICOM PS3 - DICOM image to PNM file
SYNOPSIS
dctopnm [ -v|verbose ] [ -quiet|silent ]
DESCRIPTION
dctopnm reads the named dicom or acr-nema input file and copies the raw image pixel data to a PNM file after adding a PGM or PPM header.
The input file must be unencapsulated, and in the case of > 8 bit data, in the same byte order as desired in the output, since the raw
bytes are copied from input to output without any conversion. Use dccp(1) first to change the encoding if necessary.
Only the necessary number of bytes to encode the pixel data will be written (based on rows, columns, number of frames, samples per pixel
and bits allocated); this means that for an odd number of bytes the extra DICOM padding byte will not be copied to the raw output. This
prevents netpbm utilities freaking out with an error "reading magic number" if the padding byte is present. If any of the necessary
attributes to calculate the correct pixel data length are missing, all encoded bytes will be written.
OPTIONS
The PNM output goes where it is specified or standard out. The verbose output goes to standard error.
The basic input switches are described in dcintro(1). Options specific to this program are:
-quiet|silent
Suppress the normal description of image parameters.
-verbose
Display byte offset from file start and message start, in hexadecimal, and dump contents while reading, once read, during replace-
ment, and before writing.
ENVIRONMENT
EXAMPLES
% dcfile big.dc3
Meta: UID 1.2.840.10008.1.2.1
Meta: Description "Explicit VR Little Endian"
Meta: ByteOrder Little
Meta: VR Explicit
Meta: Encapsulated No
Data: UID 1.2.840.10008.1.2.2
Data: Description "Explicit VR Big Endian"
Data: ByteOrder Big
Data: VR Explicit
Data: Encapsulated No
% dctopnm big.dc3 big.pgm -endian big
Rows = 512
Columns = 512
NumberOfFrames = 0
PhotometricInterpretation = MONOCHROME2
SamplesPerPixel = 1
BitsAllocated = 16
BitsStored = 16
HighBit = 15
PixelRepresentation = 1
PlanarConfiguration = 0x0
Rows*Columns*SamplesPerPixel*BitsAllocated/8 = 0x80000
Writing ...
FILES
SEE ALSO
dccp(1), pnmtodc(1), rawtodc(1), dctoraw(1), dctopgm8(1), dcintro(1)
AUTHOR
Copyright (C) 1993-2012. David A. Clunie DBA PixelMed Publishing. All rights reserved.
BUGS
DICOM PS3 13 April 2012 DCTOPNM(1)