Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What modern utilities should be a standard part of a modern unixy distro?. Parent comment
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.
Something like this? (But of course made more robust. I'm not great at shell scripting.)