Karen Lewellen <[email protected]> wrote: > I am a bit lost. > where are the temp files?
The temp files are created by the touch commands and are called start and end. They are in the /tmp directory and are removed by the last line of greg's little script. I think his approach is probably about as simple as you will find. > honestly, I just want a simple file display showing what might be a > dozen file names in this specific window. > why is this not possible? > Kare > > > > On Sat, 16 May 2026, Greg Wooledge wrote: > > > On Sat, May 16, 2026 at 16:25:41 -0400, Karen Lewellen wrote: > >> Also, because I create many text files in a given day, my goal is > >> very tight here, but it seems I cannot provide actual dates, just > >> a number of days window? > >> There is not a syntax for say the window of 12 may, say 5 days > >> ago until 14 may, which would be 2 days ago? > > > > There are lots of ways to solve this problem. Here's another > > approach: > > > > touch -t 202605120000 /tmp/start > > touch -t 202605150000 /tmp/end > > find . -name '*.txt' -newer /tmp/start ! -newer /tmp/end -print > > rm /tmp/start /tmp/end > > > > This creates two temporary files whose timestamps delimit the period > > of time we're interested in: from the start of 2026-05-12 to the > > start of 2026-05-15. This is a period lasting 72 hours (3 days). > > > > As before, you can replace -print with -ls or -printf if you want a > > different output format. > > > > >

