![]() |
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 |
| renaming xls file | systemsb | UNIX for Dummies Questions & Answers | 2 | 10-19-2007 07:50 AM |
| Help in renaming file !!! | kumarsaravana_s | UNIX for Dummies Questions & Answers | 5 | 05-02-2007 12:45 PM |
| renaming part of a file | ajaya | Shell Programming and Scripting | 0 | 04-11-2006 10:00 PM |
| renaming the file with the timestamp | ajubi | Shell Programming and Scripting | 6 | 12-05-2005 06:21 AM |
| Renaming a file to the same name | lachino8 | UNIX for Dummies Questions & Answers | 3 | 07-31-2002 08:52 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I have an audit log that is produced each day from a production printer. It names the file using todays date, but it removes the leading zero's. For example: todays date 060104 names the file 6104.txt.
I ftp this file onto a Sun box and pull stats off of it. To keep some consistency to what I am doing I would like to rename the file from 6104.txt to 060104.txt, i.e. inserting zero if the day and month are single digits. Can anyone help me do this, please? Thanks in advance |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|