by gorgoiler · 1mo ago · 0 comments
The classics, of course:
ls -larth
… | awk ‘{print $…}’
for f in … ; echo foo $f ; end | sh -x
(Weird to mix fish and sh, I know. Sue me!)Another one though is if I need some kind of random-ish seed for something like a cache key, or a hidden URL path directory, or the password for the bitcoin wallet I keep publicly online to taunt others:
date | md5sum
Glad to hear I’m not alone! $ cat .inputrc
"\e\C-a": " | awk '{print $ }'\C-b\C-b\C-b"
then control+alt+a inserts your awk snippet, and you have even less reason to learn modern tools