Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jul 2010 01:38:28 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: thoughts on sorting files into sub-folders by access date?
Message-ID:  <20100702013828.3b43639c@gumby.homeunix.com>
In-Reply-To: <20100701220855.70d74b03@gumby.homeunix.com>
References:  <AANLkTilntk8nw4bORlA-E3Wc96NwFUdjhlnqla-xcx92@mail.gmail.com> <20100701220855.70d74b03@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 1 Jul 2010 22:08:55 +0100
RW <rwmaillists@googlemail.com> wrote:


> dir="${targetdir}/`stat -f %Sm -t %Y%m%d ${file}`/"
> [ -d "${dir}"] || mkdir "${dir}"
> mv "${file}" "${dir}"]
> 

Should be:

dir="${targetdir}/`stat -f %Sm -t %Y%m%d ${file}`/"
[ -d "${dir}" ] || mkdir "${dir}"
mv "${file}" "${dir}"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100702013828.3b43639c>