@aliss@outerheaven.club I'm not sure (i.e read this as more a suggestion / guess), but something like
awk -F "/" '/^[\!+]/ {print $1, $NF}' | sort -hk 2, I don't think awk can do sorts easily
Conversation
Notices
-
Embed this notice
Tosti ? (tost@mk.toast.cafe)'s status on Thursday, 25-Aug-2022 07:17:23 JST Tosti ? - Hélène likes this.
-
Embed this notice
aliss (aliss@outerheaven.club)'s status on Thursday, 25-Aug-2022 07:17:24 JST aliss anyone with awk ✨ magic ✨ powers, how to simplify:
grep "^[\!+]" file | sort -h -k 2 | awk -F "/" '{print $1, $NF}'into a single awk call? :celredcrystalheart: