![]() |
|
|
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 |
| trim leading zero in certain column in a string | dngo | UNIX for Dummies Questions & Answers | 2 | 04-01-2007 03:30 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
/^\+0+/ : means match the start with literal + sign and then one or more 0's. (the '+' sign after the 0). sub(/^\+0+/,"",$4) : means if $4 matched, substitute with "", meaning null..ie it removes them... |
|
||||
|
Hello ghostdog74
I get the follow. error when I try to implement ur awk script. awk: 0602-521 There is a regular expression error. *?+ not preceded by valid expression The source line number is 1. The error context is $4 ~ >>> /^+/{ <<< Pls. guide. |
![]() |
| Bookmarks |
| Tags |
| awk, awk trim, trim, trim awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|