Mastodon Refind


10 Sep 2019 | code data

I wrote this one-liner when I was trying to determine how dependent on bash I am, with an eye to converting to zsh or fish or even sh for maximal machismo. I ended up not doing anything about the results, but I did determine that my commitment to bash is not as strong as I’d thought; on the order of half a dozen scripts I still use for anything have bash in the shebang line.

find ~ -type f \! -name \*.json -exec file {} \+ 2>/dev/null|grep  ASCII |cut -d: -f 1| xargs head -1 2> /dev/null | grep  -B1 bash