% echo `date +%s -d 20020227` `date +%s -d 20011130` - 86400 / p | dc 89
89日とか言われてますな。
% date +%Y%m%d -d '90 days ago' 20011129 % date --version date (GNU sh-utils) 2.0 Written by David MacKenzie.
Copyright (C) 1999 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.