The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Retrieve the first 9 digits from the numeric value
.
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
:
Retrieve the first 9 digits from the numeric value
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
06-30-2008
chihung
Registered User
Join Date: Jun 2008
Location: Singapore
Posts: 48
Code:
num=000000001200820060734 echo $num | cut -c1-9 |
sed
-e 's/^[0]*//'
chihung
View Public Profile
Find all posts by chihung
Find chihung's past nominations received
Find chihung's present nominations given