News for hackers. Stuff that matters.
Re:What modern utilities should be a standard part of a mode... by abecedarius on Saturday February 18, 2023 @09:19AM (#34847111)
> sortby

Something like this? (But of course made more robust. I'm not great at shell scripting.)

    tee /tmp/sortby | "$@" | awk '{ key=$0; getline <"tmp/sortby"; print key "#" $0; }' | sort | cut -d'#' -f2-

There are no comments on this comment yet.