[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: TBird mail



On Tue, Dec 06, 2022 at 09:57:11PM -0600, David Wright wrote:
> Make a change to your preferences, save it, then:
> 
>   $ find . -type f -mmin -1440 -printf '%Ta%TH:%TM:%.5TS%11s  %P\n' | sort -n -k 2 | less # one day
> 
> Edit the . to a reasonable top of tree, 1440 to more like ten,
> and the sort order, 2 (size) to 1 (timestamp) or 3 (filename).
> 
> That command will tell you what change in the last few minutes.

Here's my version:

rlart() {
  local day time path
  find "${1:-.}" -type f -printf '%T@ %TY-%Tm-%Td %TT %p\0' |
    sort -zn |
    while read -rd '' _ day time path; do
      printf '%s %s %s\n' "$day" "${time%.*}" "$path"
    done
}

No restriction on time, so you'd probably pipe it to something like
tail, or tail -n20.  Or pipe it to less, then jump to the bottom ("G")
and read upward.  Or... don't pipe it at all, let it spew the whole
result to the terminal, then just start reading upward, scrolling if
needed.


Reply to: