how to find files less than a day old?

From: Brian John (brianjohn_at_fusemail.com)
Date: 03/29/05

  • Next message: Anthony Atkielski: "Re: hyper threading."
    Date: Tue, 29 Mar 2005 13:02:37 -0600 (CST)
    To: freebsd-questions@freebsd.org
    
    

    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?

    Thanks

    /Brian
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Anthony Atkielski: "Re: hyper threading."

    Relevant Pages

    • Re: Who uses semolina?
      ... David Friedman wrote: ... to various sub-categories, ... grab a bunch of pages on the same subject - the page and the sub-links ...
      (rec.arts.sf.composition)
    • Re: how to find files less than a day old?
      ... >> I'm trying to write a script to concatenate a bunch of files. ... >> want to grab a bunch of files out of a directory that are less than an ... Is there any way to get this to work in Solaris? ... To unsubscribe, ...
      (freebsd-questions)
    • Help: How to access a method in an object that is stored in a Vector???
      ... I have a Vector that has a bunch of objects stored inside of it. ... want to grab an object from the vector and use methods inside of it. ... with the same sort of problem but none of them helped. ... public class StackUser ...
      (comp.lang.java.help)
    • Re: Who uses semolina?
      ... Tina_Hall@xxxxxxxxxxx (Tina Hall) wrote: ... various sub-categories, ... Never a method to grab a ... bunch of pages on the same subject - the page and the sub-links or ...
      (rec.arts.sf.composition)
    • Re: how to find files less than a day old?
      ... > I'm trying to write a script to concatenate a bunch of files. ... > want to grab a bunch of files out of a directory that are less than an ...
      (freebsd-questions)