Date: Tue, 29 Mar 2005 14:00:57 -0600 From: Noel Jones <noeldude@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: how to find files less than a day old? Message-ID: <cce506b050329120018c19da8@mail.gmail.com> In-Reply-To: <1776.209.87.176.4.1112122957.fusewebmail-19592@webmail.fusemail.com> References: <1776.209.87.176.4.1112122957.fusewebmail-19592@webmail.fusemail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 29 Mar 2005 13:02:37 -0600 (CST), Brian John <brianjohn@fusemail.com> wrote: > Hello, > I'm trying to write a script to concatenate a bunch of files. Basically I > want to grab a bunch of files out of a directory that are less than an > hour or so old and put them in one file. > > This is what I am using so far: > > find . -mtime -1 -type f | xargs cat > temp.txt > > However, this only grabs files that are less than a day old, so I get some > files returned that I don't want. I tried using -0.5 instead of -1 and it > didn't work. How can I accomplish this? > find . -mtime -1h -type f .... man find -- Noel Jones
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cce506b050329120018c19da8>