I like the technique that Hal showed in "The Magic Of Sorts". I didn't realize I could sort by multiple fields like that. When I need to sort IP addresses, I use the "--version-sort" option. It is meant to sort weird version numbers used by software vendors, but I've found the algorithm works well for IP addresses as well. Example "sort --version-sort ip-addr". Good luck!
@jbssfl
Жыл бұрын
Good info thanks
@bthemedia
4 жыл бұрын
@49:12 testing time of execution comparisons is not really applicable on these small data sets / millisecond times... really need enough data and a query that takes 10 sec+ or 1-10min to do comparisons. I have been surprised many times with simple commands that actually worked more efficiently! Could be CPU or stack optimization.
Пікірлер: 4