File date format how to change

Hi All,

Below are the unix files taken by the help of ls -lrt

-rw-r--r-- 1 kbehera Domain Users 293 Jul 27 13:33 sand.txt
-rw-r--r-- 1 kbehera Domain Users 4 Jul 27 13:37 sand1.txt
-rw-r--r-- 1 kbehera Domain Users 293 Jul 27 15:30 new_sand.txt
-rw-r--r-- 1 kbehera Domain Users 0 Jul 27 16:13 typescript
drwxr-xr-x+ 1 kbehera Domain Users 0 Jul 27 16:26 script
-rw-r--r-- 1 kbehera Domain Users 525 Jul 30 12:51 script2.sh

current date format bigen below with file name

Jul 27 13:33
Jul 27 13:37
Jul 27 15:30
Jul 27 16:13
Jul 27 16:26
Jul 30 12:51

my requirment is like

07312012:17:36:35

how i can do and where i can change the setting and how .
and when i will next time create a file the date format should be like

-rw-r--r-- 1 kbehera Domain Users 293 07312012:17:36:35 new_sand.txt

please give me some advices with examples.

Thanks
Krupa

What is this number: 07312012 I am guessing it is seconds, but seconds since when?
What OS are you on? (example: Ubuntu 11.1, Solaris 10)

The very short answer is that you will have to write a shell script, perl, or C to get what you want.

Hi Jim,
My requirement is like

  1. Upstream Application will send .csv \(like -rw-r--r-- 1 kbehera Domain Users 293 07312012:17:36:35 new_sand.csv\)
    
  2. From the .csv file we have to take only 07312012\(month day and year\) and save with a variable 
    
  3. Check the system date only ex- 07312012\(month day and year\) and save a variable then compare with  file generated date\(07312012:17:36:35 new_sand.csv\)  
    
  4. Main propose to check .csv file timestamp and today�s date timestamp only �month day and year� equal or not 
    
  5. Then will proceed for next �..
    

Thanks,
Krupa