The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
how to? launch command with string of command line options TinCanFury Shell Programming and Scripting 5 04-28-2008 06:06 PM
find command sort options? mavsman UNIX for Dummies Questions & Answers 6 04-01-2008 03:20 PM
Split Command options mohdtausifsh UNIX for Advanced & Expert Users 7 10-04-2006 07:28 AM
array as command line argument !!!! spandu UNIX for Dummies Questions & Answers 2 02-21-2006 01:33 PM
Executing command line options Safia High Level Programming 8 07-04-2002 03:50 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-10-2008
jperret jperret is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 1
Associated array from command line options

I am looking to populate an (associated) array with a command line argument.

The command line would look something like this:

alert -action test -priority '10' -module test_module . . .
The associated array would look like this after the data is read in

flag=(action=test
priority=10
module=Test_Module

It there something availeble in the ksh that works like the Getopt::Long module in perl?
  #2 (permalink)  
Old 01-10-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
Not really. awk supports associative arrays.

If you tell us what are you trying to do rather than how you want to do it, maybe we can help.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0