I wrote:
>>The first seems the easy way, the second I am not capable of.
>>If anyone has any other suggestions I would be happy to hear them.
>
>
>If you accurately represented the date format above then
>sed could accomplish #2 thus:
>
>sed -e 's;\(..\)/\(..\)/\(..\);\3/\2/\1/;' <originalFile >newFile
Oooops - that last / character shouldn't be there. And I
now realize I'm not sure what you wanted to do; that sed
command will rewrite instances of xx/yy/zz to be zz/yy/xx,
so mm/dd/yy would become yy/dd/mm. If you instead wanted
mm/dd/yy to become yy/mm/dd the command would be:
sed -e 's;\(..\)/\(..\)/\(..\);\3/\1/\2;' <originalFile >newFile
Sorry about that - I shot from the hip and only hit my toe...
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************