![]() |
|
|
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 |
| Assigning value to a variable | bonosungho | Shell Programming and Scripting | 2 | 04-29-2009 10:36 AM |
| assigning a variable | cesarNZ | Shell Programming and Scripting | 2 | 11-06-2008 10:45 PM |
| assigning date value to a variable | mansoorbabu | Shell Programming and Scripting | 1 | 06-13-2008 08:35 AM |
| Assigning Value of variable | janemary.a | Shell Programming and Scripting | 2 | 05-11-2007 06:53 AM |
| Assigning a value to variable | sirtrancealot | Shell Programming and Scripting | 3 | 07-15-2006 04:07 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
The following command runs on in the Korn shell prompt. however i want to output the value of this to a variable. Can anyone provide a solution? echo 'ABC,DEF,"G,HI,J",KLM,"MNi,O"'| awk -F "\"" '{for(i=1;i<=NF;i++){if(i%2)gsub("\,","~^~",$i)}}1' |
| Bookmarks |
| Tags |
| assign command to variable, awk, csv, variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|