![]() |
|
|
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 |
| How to convert a 2 digit to 4 digit | jisha | Shell Programming and Scripting | 6 | 04-23-2008 07:38 AM |
| why "expr "${REPLY}" : '\([1-9][[:digit:]]*\)" can figure out whether it is a digit? | sleepy_11 | Shell Programming and Scripting | 6 | 08-08-2007 04:51 AM |
| Extracting 10 digit number from txt files | c19h28O2 | Shell Programming and Scripting | 9 | 08-07-2006 07:06 PM |
| converting 6 digit column to dates format | Gerry405 | UNIX for Dummies Questions & Answers | 15 | 10-06-2005 07:42 AM |
| calculating a check digit | jim9418 | UNIX for Dummies Questions & Answers | 1 | 02-16-2005 03:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Replace one digit by two digit using sed
Folks,
Is there a simple way to replace one digit by two digit using sed. Example, mydigit1918_2006_8_8_lag1.csv should be mydigit1918_2006_08_08_lag01.csv. I tried this way, but doesn't work. echo mydigit1989_2006_8_8_lag1.csv|sed 's/[[:digit:]]/0[[:digit:]]/' Thank you, |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|