Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a zero..... 2

Status
Not open for further replies.

nithin97

Programmer
Oct 23, 2002
25
US
hi,, what i'm trying to do is if the number is less than 10 , I want to add a zero before it.. like, if it is 9 output should be 09.. and i'm using c-shell.. can you pls help me out ?
 
echo $string|sed -e 's/^[0-9]$/0&/' -----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
 
Chapter11: why [{}] around VALUE ?? -----------
when they don't ask you anymore, where they are come from, and they don't tell you anymore, where they go ... you'r getting older !
 
oh, NO - not again.........[wink] vlad
+---------------------------+
|#include<disclaimer.h> |
+---------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top