Sponsored Content
Top Forums Shell Programming and Scripting Is is possible to pass multiple entries in PS3 select ? Post 302729721 by RudiC on Sunday 11th of November 2012 02:52:08 AM
Old 11-11-2012
Ah, got you. Sorry for my misunderstanding. I can't give a terminal answer, but to my knowledge that's not possible with select. Unless some other guy can show you a tricky solution, you need to do this kind of selection with echo and read.
 

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
DCSRDUMP(1)					       DICOM PS3 - Describe DICOM SR content					       DCSRDUMP(1)

NAME
dcsrdump - ACR/NEMA DICOM PS3 ... DICOM PS3 - Describe DICOM SR content SYNOPSIS
dcsrdump [ -v|verbose ] [ -vv|veryverbose ] [ -filename ] [ -identifier ] DESCRIPTION
dcsrdump reads the named dicom structured report (SR) input file and describes the information contained. OPTIONS
The attribute values, description and verbose output go to standard error. The basic input switches are described in dcintro(1). Options specific to this program are: -verbose Describe the parsing process; does not actually do anything at present. -veryverbose Display byte offset from file start and message start, in hexadecimal, and dump contents of the DICOM dataset while reading. -filename Show the name of the file supplied in the arguments; a hyphen will be reported if no filename was supplied. -identifier Preceed each content item with the dot delimited numeric identifier of the content item (as used in references). ENVIRONMENT
EXAMPLES
% dcsrdump -identifier basictextsr.dcm 1: : CONTAINER: (18748-4,LN,"Diagnostic Imaging Report") [SEPARATE] >1.1: CONTAINS: CONTAINER: (121070,DCM,"Findings") [SEPARATE] >>1.1.1: CONTAINS: TEXT: (121071,DCM,"Finding") = "stuff" FILES
SEE ALSO
dcintro(1) AUTHOR
Copyright (C) 1993-2010. David A. Clunie DBA PixelMed Publishing. All rights reserved. BUGS
DICOM PS3 18 July 2009 DCSRDUMP(1)
All times are GMT -4. The time now is 01:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy