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

Re: ERROR! - was [Re: Quirks noted with install on new machine]



On Mon, Jan 02, 2017 at 09:49:16AM -0600, David Wright wrote:
> But did the settings stick? ie do they survive a reboot?
> Typing:
> 
>     find . -type f -mmin -1440 -print | less # one day
> 
> can also be useful in such situations. Obviously reduce 1440 to
> some suitably small interval to find the most recently modified files.

I have a more complicated variant of this command, which I created
as a function named "rlart" in my .bashrc:

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

It's basically like "ls -lart" but it also recurses, hence the name.


Reply to: