![]() |
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 |
| 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 |
| Shell script for converting file contents into CSV | rish_max | Shell Programming and Scripting | 5 | 02-06-2009 02:51 AM |
| converting the data type in unix shell script | kmanivan82 | Shell Programming and Scripting | 5 | 10-18-2008 01:07 PM |
| Converting Shell Script to HTML | davwel | Shell Programming and Scripting | 3 | 10-25-2007 10:25 PM |
| Converting Stirngs to number | raman1605 | Shell Programming and Scripting | 2 | 10-10-2007 05:34 AM |
| Converting Shell script to Dos batch files | darwinkna | Shell Programming and Scripting | 1 | 05-12-2006 11:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Problem in converting number in shell script
Hi All,
I am writing a shell script in which I want to convert a number like : Suppose the number is "98487657" and we have to convert it to "98000000", what I want to do is to retain first 2 digits and convert all remaining digits to "0". Number could be of any length (length > 2). Thanks in advance ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|