![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting user input | stevefox | Shell Programming and Scripting | 3 | 02-16-2007 02:09 AM |
| Creating a Unique ID on distributed systems | pic | High Level Programming | 4 | 05-10-2006 11:25 AM |
| Limiting length of user in while creating user | Satya Mishra | AIX | 2 | 04-15-2005 03:40 AM |
| Script to count unique number of user loged in | elchalateco | Shell Programming and Scripting | 1 | 09-30-2002 12:32 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
creating unique lists from user input
hi all,
I'm trying to resolve a scenario where we prompt the user to enter 1 or more disk names. From there we would run a command on each disk which would give its location. This would allow us to create a list of disks at location A, a list of disks at location B,....etc... Any help on creating these multiple lists? script would do something like: Enter disk(s): disk1 disk2 disk3 disk4 # behind the scenes we would run something like # get_location disk1 (for each disk) # which returns something like NY, Florida, etc... # would set up the unique lists here # then give back to user Disks disk1 disk2 are at location Florida Disk disk3 is at location NY Disk disk4 is at location Boston Our scenerio is a little more complicated than this but I wanted to get it down to the most basic example I could to make the question easier to ask. Any suggestion on how to build these unique lists in my shell script? (sadly we can't use perl here as its cross platform...etc..) thanks Annie |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|