Sponsored Content
Top Forums Shell Programming and Scripting Is is possible to pass multiple entries in PS3 select ? Post 302729711 by RudiC on Sunday 11th of November 2012 02:23:08 AM
Old 11-11-2012
Quote:
Originally Posted by ningy
. . .
The above will return something like below :

Select from the list of choices
1) 595
2) 596
3) 597
4) 598
It won't. It will display
Code:
1) 595
2) 596
3) 597
4) 598
5) QUIT
Enter corresponding number and hit enter:

Where and how do you want multiple choices to show up?
 

10 More Discussions You Might Find Interesting

1. Programming

Multiple fds in select()

Hi I want to read messages from multiple interfaces using one select() statement. Does anybody knows if I can specify multiple fds in the *readfds parameter? If yes, what's the max num of fds? Something like the following: fd_set descrSet = {0}; int retVal; MyStructS *msg = NULL; ... (1 Reply)
Discussion started by: amatsaka
1 Replies

2. Shell Programming and Scripting

Dynamic select with multiple word menu items

Hello all, I'm developing a deployment script at work and at one point it would need to display something like this: Which version of ADMIN would you like to deploy? 1) 1.0.0 (store1, 10 Jan 2004) 2) 1.0.1 (store1, 20 Jun 2004) 3) 1.0.2 (store1, 15 Jul 2004) Select a version : I know... (5 Replies)
Discussion started by: domivv
5 Replies

3. UNIX for Dummies Questions & Answers

Select Distinct on multiple fields

How do I create a script that provides a count of distinct values of a particular field in a file utilizing commonly available UNIX commands (sh or awk)? Field1|Field2|Field3|Field4 AAA|BBB|CCC|DDD 111|222|333|777 AAA|EEE|ZZZ|EEE 111|555|333|444 AAA|EEE|CCC|DDD 111|222|555|444 For... (2 Replies)
Discussion started by: Refresher
2 Replies

4. Shell Programming and Scripting

PS3 and SELECT, is it possible to put a line break?

Hi all, Before I give up on using SELECT for my first attempt at creating a menu driven script, can anyone please advise if it is possible to include a line break for PS3, I've tried putting in a \n and it does not work. Tried for both bash and ksh and both gives the same result. Preference... (3 Replies)
Discussion started by: newbie_01
3 Replies

5. Shell Programming and Scripting

PS3 select when wrong input given

Hi All I am using the below code to chose a file to view : PS3="Select file to view : " select FILE in `ls` QUIT do if ; then clear cat $FILE else break fi REPLY='' done Everything works fine as long as I am giving the correct choice . But when i give a... (4 Replies)
Discussion started by: ningy
4 Replies

6. Shell Programming and Scripting

How to use a multiple line list with the select command in ksh?

I copied the below program to play around with displaying a list of items using the select command in ksh. When I put all items in the same line, it works fine. I am trying to use multiple lines instead of a single row...my list is too large for a single line. How do I get the line continuation... (3 Replies)
Discussion started by: haganator
3 Replies

7. Shell Programming and Scripting

How to pass Variable from shell script to select query for SqlPlus?

echo "set echo off"; echo "set feedback off"; echo "set linesize 4000"; echo " set pagesize 0"; echo " set sqlprompt ''"; echo " set trimspool on"; Select statement is mentioned below echo "select res.ti_book_no from disney_ticket_history res where res.ti_status =${STATUS} and... (7 Replies)
Discussion started by: aroragaurav.84
7 Replies

8. Shell Programming and Scripting

Concatenate select lines from multiple files

I have about 6000 files of the following format (three simplified examples shown; actual files have variable numbers of columns, but the same number of lines). I would like to concatenate the ID (*Loc*) and data lines, but not the others, as shown below. The result would be one large file (or... (3 Replies)
Discussion started by: pathunkathunk
3 Replies

9. UNIX for Advanced & Expert Users

Pass Multiple Commands and Open Multiple Xterms via PSS

Hello, I'm attempting to open multiple xterms and run a command as an SAP user via sudo using PSSH. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in to the servers in the file list, and SUDO to the SAP(ADM) user, but it won't do anything else... (11 Replies)
Discussion started by: icemanj
11 Replies

10. Shell Programming and Scripting

Select multiple column from multiple files

Hi Friends, $ cat test1.txt emeka:1438 shelley:1439 dmeyer:1440 kurtarn:1441 abdul:1442 $ cat test2.txt 1:a 2:b 3:c 4:d $ cat test3.txt cat:dog:bat man:hot:cold (5 Replies)
Discussion started by: Jewel
5 Replies
DCDUMP(1)					      DICOM PS3 - Describe DICOM file content						 DCDUMP(1)

NAME
dcdump - ACR/NEMA DICOM PS3 ... DICOM PS3 - Describe DICOM file content SYNOPSIS
dcdump [ -v|verbose ] [ -filename ] DESCRIPTION
dcdump reads the named dicom or acr-nema input file and describes the information contained, attempting to interpret the structure of the message, including nested sequences (cf. andump). The group and element number, dictionary and explicit value representation, description of tag, value length and value of the element are displayed, optionally with an offset byte count from the start of the file. OPTIONS
The attribute values, description and verbose output go to standard error. Binary attributes are written in hexadecimal with a preceding "0x". Numeric string attributes are written in decimal. Attribute values are displayed in hexadecimal or string format as determined by the value representation. The basic input switches are described in dcintro(1). Options specific to this program are: -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
% dcdump NM.dc3 (0x0008,0x0000) UL Group Length VR=<UL> VL=<0x0004> [0x08] (0x0008,0x0008) CS Image Type VR=<CS> VL=<0x0024> <...> ... (0x0054,0x0013) SQ ... Sequence VR=<SQ> VL=<0xffffffff> [] ----: >(0x0054,0x0014) DS Energy Win LL VR=<DS> VL=<0x0006> <1.0> >(0x0054,0x0015) DS Energy Win UL VR=<DS> VL=<0x0006> <9.0> ... FILES
SEE ALSO
andump(1), dcintro(1) AUTHOR
Copyright (C) 1993-2010. David A. Clunie DBA PixelMed Publishing. All rights reserved. BUGS
DICOM PS3 6 March 2007 DCDUMP(1)
All times are GMT -4. The time now is 09:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy