getitems(1F) FMLI Commands getitems(1F)NAME
getitems - returns a list of currently marked menu items
SYNOPSIS
getitems [delimiter_string]
DESCRIPTION
The getitems function returns the value of lininfo if defined, else it returns the value of the name descriptor, for all currently marked
menu items. Each value in the list is delimited by delimiter_string. The default value of delimiter_string is newline.
EXAMPLES
Example 1: A sample output of getitems command.
The done descriptor in the following menu definition file executes getitems when the user presses ENTER (note that the menu is multise-
lect):
Menu="Example"
multiselect=TRUE
done=`getitems ":" | message`
name="Item 1"
action=`message "You selected item 1"`
name="Item 2"
lininfo="This is item 2"
action=`message "You selected item 2"`
name="Item 3"
action=`message "You selected item 3"`
If a user marked all three items in this menu, pressing ENTER would cause the following string to be displayed on the message line:
Item 1:This is item 2:Item 3
NOTES
Because lininfo is defined for the second menu item, its value is displayed instead of the value of the name descriptor.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)SunOS 5.10 5 Jul 1990 getitems(1F)
Check Out this Related Man Page
getitems(1F) FMLI Commands getitems(1F)NAME
getitems - returns a list of currently marked menu items
SYNOPSIS
getitems [delimiter_string]
DESCRIPTION
The getitems function returns the value of lininfo if defined, else it returns the value of the name descriptor, for all currently marked
menu items. Each value in the list is delimited by delimiter_string. The default value of delimiter_string is newline.
EXAMPLES
Example 1 A sample output of getitems command.
The done descriptor in the following menu definition file executes getitems when the user presses ENTER (note that the menu is multise-
lect):
Menu="Example"
multiselect=TRUE
done=`getitems ":" | message`
name="Item 1"
action=`message "You selected item 1"`
name="Item 2"
lininfo="This is item 2"
action=`message "You selected item 2"`
name="Item 3"
action=`message "You selected item 3"`
If a user marked all three items in this menu, pressing ENTER would cause the following string to be displayed on the message line:
Item 1:This is item 2:Item 3
NOTES
Because lininfo is defined for the second menu item, its value is displayed instead of the value of the name descriptor.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)SunOS 5.11 5 Jul 1990 getitems(1F)
Hi all,
my requirment is :
1. Create a list of server names in a file
2. User would chose from the above list (to be displayed as a menu) and do the tasks as per server selected from the menu.
3. Switch-case should be flexible i.e if we delete or add any server name onto the above list it... (1 Reply)
UNIX script - problem.
I want the spaces in my Item variable to be replaced with a question mark. Can you tell me what I am doing wrong? This is the whole code line.
Item | tr -s " " "?"
Why is this not making any changes to the Item value?
Thanks for any help you can give!
tg (2 Replies)
I have the following chunk of code...
while
when I try to execute this script, it outputs an error "test: ] missing"
Is there a syntax error here? (9 Replies)
Can anyone help me in this?
Here is the Secenario.
I need to count the Numerical vaues from the below output
Item processed: 1401
Item processed: 2839
Item processed: 1261
Item processed: 2584
Item processed: 2
Item processed: 988
Item processed: 1
Item processed: 2119
... (3 Replies)
I have a menu based script where user will select different action via displayed menu.
I want to log all the action or say whatever displayed on screen to a log file and want to achieve with in the same script.
i tried named pipe as below..
logfile=mylogfile
mkfifo ${logfile}.pipe... (3 Replies)
I am creating a menu currently that makes use of functions to complete each selected option but running into a bit of trouble calling them into action still fairly new with using functions correctly so any insight is appreciated. here is my code so far
#!/bin/bash
#Last updated on 05/14/14
... (4 Replies)