php -r "foreach (file('foo.txt') as $date) file_put_contents('bar.txt',
date('Y/m/d', strtotime($date)) . PHP_EOL, FILE_APPEND);"On Wed, Jul 16, 2008 at 11:06 AM, Abdallah <[EMAIL PROTECTED]> wrote: > > Salamaat 3amo Khamis :) > > foo.txt > > 8/31/2011 > 1/7/2088 > 1/31/2013 > 11/4/201 > > gives: > > 2011/08/31 > date: invalid date `1/7/2088' > 2013/01/31 > 2010/11/04 > > I got to have a 64 bit system. :D > > Thanx for the input. > > Abdallah > > On Wed, Jul 16, 2008 at 3:44 AM, Khamis Siksek <[EMAIL PROTECTED]> > wrote: > > more foo.txt | while read line; do date --date=$line +%Y/%m/%d; done > > > > On 7/16/08, Jad madi <[EMAIL PROTECTED]> wrote: > >> > >> This works on 32 systems. > >> > >> > >> > > > > > > > > -- > > > > 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 -~----------~----~----~----~------~----~------~--~---

