![]() |
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 |
| Simple to you not simple to me pattern matchin help | aleks001 | Shell Programming and Scripting | 0 | 07-22-2007 11:06 PM |
| Simple C question... Hopefully it's simple | Xeed | High Level Programming | 6 | 12-15-2006 02:29 PM |
| Ok simple question for simple knowledge... | Corrail | UNIX for Dummies Questions & Answers | 1 | 11-28-2005 01:03 PM |
| Very simple question about changing PS1 variable at startup! | abidmalik | UNIX for Dummies Questions & Answers | 2 | 08-26-2002 02:05 AM |
| simple SH variable | sancho5 | Shell Programming and Scripting | 9 | 01-04-2002 03:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I am working with AIX ksh
I may have an output like one of the following (I am acuatlly using "ps eww <pid>" in a script and would like to assign one of the varable to a varable in my script): example 1: a=1 b=2 c=3 d=4 e=5 f=6 g=8 or example 2: e=5 d=3 b=1 a=2 c=4 or example 3: 5=a 4=b 3=c I need an easy command that will set a variable with what 3 is equal to: example 1 I would like VAR=3 (since c was equal to 3) example 2 I would like VAR=4 (since c was equal to 4) example 3 I would like VAR= (since there was no c) Any help would be greatly appreciated. Last edited by 2dumb; 12-09-2008 at 06:04 PM.. |
|
||||
|
Quote:
example 1: a=1 b=2 c=3 d=4 e=5 f=6 g=8 or example 2: e=5 d=3 b=1 a=2 c=4 or example 3: 5=a 4=b 3=c |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|