You are here: RE: [PHP] looking for program/script to diff directories and show dates « PHP « IT news, forums, messages
RE: [PHP] looking for program/script to diff directories and show dates

Posted by Philip Hallstrom on 10/21/61 11:22

>>> I was just expirementing with the diff command and was wondering if
>>> there was anything out there that does the same thing but with a more
>>> intuitive interface?
>>
>> What's wrong with "diff -r --brief dir1 dir2"
>>
>> That's about as intuitive as you can get, no?
>
> Well to answer your question, no. It could get a lot more intuitive than
> that. For one, I don't know which file was updated last (ok, well, *I*
> know when, but not anyone else that might come later, or for that matter
> me in 6 mths.)

Ah... good point. I'd assumed that dir1 would always be newer than dir2
(ie. that you only make changes in dir1).

You could combine the output of the diff command though to loop through
and grab timestamps. there might be an option to diff to just show
timestamps, not the actual diffs too... not sure though

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация