3 ms·
Also, suppose we abstract the operators a little bit: if [ $x $LT $y ] ; ... If we set LT to "-lt" we get numeric comparison. Change it to "-ot" and we can
by kazinator 12y ago
Also, suppose we abstract the operators a little bit:
if [ $x $LT $y ] ; ...
If we set LT to "-lt" we get numeric comparison.
Change it to "-ot" and we can order paths by modification timestamp.
Set LT to "<" and obtain lexicographic sorting on strings.