![]() |
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 |
| How to apply sub/gsub of awk on a particular field? | jaduks | Shell Programming and Scripting | 1 | 12-05-2007 05:16 AM |
| use var in gsub of awk | summer_cherry | Shell Programming and Scripting | 1 | 10-15-2007 05:01 AM |
| Gsub and nawk | scotty_123 | Shell Programming and Scripting | 1 | 05-10-2007 11:10 AM |
| "next" and "gsub" in awk | fedora | Shell Programming and Scripting | 3 | 11-15-2006 11:57 PM |
| Easy question about awk gsub | TheCrunge | UNIX for Dummies Questions & Answers | 1 | 02-22-2005 05:26 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Help with AWK and gsub
Hello,
I have a variable that displays the following results from a JVM.... 1602100K->1578435K I would like to collect the value of 1578435 which is the value after a garbage collection. I've tried the following command but it looks like I can't get the > to work. Any suggestions as to how to get the result? jvmvalue=` echo $jvmvalue| awk '{gsub(/^[.->]+|[ K),]+$/,"");print}'` Thanks for your time, Nick |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|