|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Hi how do i convert a date i grep from a file (say apr 2004) to numbers i.e. 042004 or even o4 and 2004 separately? .Thnx in adv.
![]() |
|
#2
|
|||
|
|||
|
Vinod,
firstly determine the file separators then you can use awk to get the substring and use the case statements to decode the month names to month numbers. |
|
#3
|
|||
|
|||
|
Hi Prashanth,
Thx for the solution. I actually thought of that before but was just wondering if there was any less cumbersome way of doing it. Also lesser lines of code means easier troubleshooting. It is beacuse I have a file of users and their last logins which I have to compare with users in a wtpmx file in several other directories which have been FTPed into the machine. So if I use case, it is going to take a very long time to excecute. Any other suggestions? Thx in adv. ![]() |
|
#4
|
|||
|
|||
|
Vinod,
Check out the ksh function at the posting below to see if it may help - http://forums.devshed.com/t127672/s.html |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Convert Date string to number |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|