![]() |
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 |
| Assigning values to an array via for/while loop | fiori_musicali | Shell Programming and Scripting | 2 | 11-24-2008 11:01 PM |
| Assigning the values to an Array | kkraja | Shell Programming and Scripting | 1 | 08-11-2008 06:28 AM |
| string manipulating | psalas | UNIX for Dummies Questions & Answers | 9 | 04-15-2008 10:00 AM |
| assigning values to a variable | trichyselva | UNIX for Dummies Questions & Answers | 3 | 12-14-2007 01:55 AM |
| Assigning values to an array | yongho | UNIX for Dummies Questions & Answers | 4 | 07-13-2005 08:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
Hi guys.. thanks the code is running. thanks all Regards. -----Post Update----- Quote:
is it possible in the above code to get the number of splits that have happened over her.. suppose if the above code goes like this psg proc_s |awk -F" " '{print all fields }''| while read s do n=$(( $n + 1)) Sam[$n]="$s" done now in case if i do echo ${#Sam[0]} it gives number of charachters in the Sam[0] array..what if i have to find number of words...i.e to get the number of spilts per line..how can it be done |
|
||||
|
Quote:
Awk - A Tutorial and Introduction - by Bruce Barnett Regards |
|
||||
|
Quote:
hi... can u explain what is $5 ~ /^[A-Z]/)? $9:$8) .. i cannot understand that. one more thing can i modify this code like this psg ksh | awk '{ pid=$2 uid=$1 command=($5 ~ /^[A-Z]/)? $9:$8) }' thanks |
![]() |
| Bookmarks |
| Tags |
| awk, cut, for each, for loop |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|