On Sat, Dec 10, 2022 at 07:18:13PM +0700, Max Nikulin wrote:
> It took some time for me to realize why you case is different. Please, try
>
> cd tmp
> find leaf leaf/ leaf// -printf '%T@/%TY-%Tm-%Td/%TT/%p\0' | while IFS=/ read
> -rd '' _ day time path; do printf '%s\n' "$path"; done
unicorn:~/tm
On 09/12/2022 23:20, Greg Wooledge wrote:
On Fri, Dec 09, 2022 at 10:23:29PM +0700, Max Nikulin wrote:
find dir dir/ dir// -printf '%T@/%TY-%Tm-%Td/%TT/%p\0' | sort -zn |
while IFS=/ read -rd '' _ day time path; do
printf '%s %s %s\n' "$day" "${time%.*}" "$path";
done | sed -
On Fri, Dec 09, 2022 at 10:23:29PM +0700, Max Nikulin wrote:
> find dir dir/ dir// | sed -n l
> dir$
> dir/$
> dir//$
>
> find dir dir/ dir// -printf '%T@/%TY-%Tm-%Td/%TT/%p\0' | sort -zn |
> while IFS=/ read -rd '' _ day time path; do
> printf '%s %s %s\n' "$day" "${time%.*}" "$path";
On 08/12/2022 23:52, Greg Wooledge wrote:
On Thu, Dec 08, 2022 at 09:53:37PM +0700, Max Nikulin wrote:
I have tried slash (a character disallowed in file
names) instead of space as field separator:
The "problem" with that is we have slashes in our pathnames (%p) in
almost all cases. But if w
On Thu, Dec 08, 2022 at 09:53:37PM +0700, Max Nikulin wrote:
> On 07/12/2022 19:18, Greg Wooledge wrote:
> >
> > 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
> >pri
On 07/12/2022 19:18, Greg Wooledge wrote:
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
}
I was not aware of the "read -
6 matches
Mail list logo