![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
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 |
Rating:
|
Display Modes |
|
|
|
||||
|
Replacing leading zeros with leading spaces
Hi,
May i know how to replace the leading zeros with leading spaces. eg: Input ------ 001235 000012 005655 Output ------- 1235 12 5655 Question 2: How to transform the same output as follows 1235 ***** 12 ***** 5655 ***** Where *'s are some other value part of record. The first field that requires the transformation is fixed say 6 digit as in this example('1235 '). |
![]() |
| Bookmarks |
| Tags |
| awk, awk trim, trim, trim awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|