The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to trim the leading zeroes in a Currency field ?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to trim the leading zeroes in a Currency field ?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
05-29-2007
lorcan
Registered User
Join Date: May 2007
Posts: 219
Quote:
Originally Posted by
praveenkumar_l
Try this too
sed
'/[+-]/,/[1-9]/ s/[+-]00*//g' file
This
sed
statement would modify the date too since the '-' symbol is present in the date representation
lorcan
View Public Profile
Find all posts by lorcan
Find lorcan's past nominations received
Find lorcan's present nominations given