GNU awk 3.1.4, it seems that awk 3.1.6 has an issue with OFS, and therefore
it removed the $3 for a reason or another?!!
Syntux, very cool one liner awk, thumbs up :-)
On 7/16/08, Jad madi <[EMAIL PROTECTED]> wrote:
>
>
> Ok, we don't need SED mess
>
> cat foot.txt | awk -F'/' '{printf "%.4d/%.2d/%.2d\n",$3,$1,$2}'
>
>
> >
>
--
Khamis Siksek
http://saksoook.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
### Jordan Linux Users Group ###
http://Jolug.org/
http://groups.google.com/group/Jolug
### Ubuntu Jordan LoCo Team ###
https://wiki.ubuntu.com/JordanTeam
http://lists.ubuntu.com/ubuntu-jo
### Ojuba Linux ###
http://ojuba.org/
### Jordan PHP ###
http://groups.google.com/group/JoPHP
-~----------~----~----~----~------~----~------~--~---