![]() |
|
|
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 |
| Triml leading zeros in unix | kingofprussia | UNIX for Dummies Questions & Answers | 7 | 08-07-2008 06:04 AM |
| Help needed in padding leading zeros | jakSun8 | Shell Programming and Scripting | 12 | 07-02-2008 08:41 PM |
| Removing leading zeros from a variable | toshidas2000 | Shell Programming and Scripting | 6 | 02-27-2008 01:13 PM |
| how to retain leading zeros | Manish Jha | Shell Programming and Scripting | 3 | 11-09-2006 05:59 PM |
| Leading zeros | wtofu | Shell Programming and Scripting | 1 | 09-16-2006 03:52 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
truncating leading zeros of a column in a file
Hi
I have a file in which I have 5 columns which are delimited by “|” as shown ABC|12|YAK|METRIC|000000019.5 XYZ|10|ABX|META|000000002.5 Now my requirement is to take the last column trim the leading zero’s for that column values and write back to the same file in the same order. Any suggestions regarding the same? is der any file utility do the same? Thanks Narendar |
| Bookmarks |
| Tags |
| awk, awk trim, trim, trim awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|