diff --git a/.config/fish/functions/countchars.fish b/.config/fish/functions/countchars.fish new file mode 100644 index 0000000..88351c6 --- /dev/null +++ b/.config/fish/functions/countchars.fish @@ -0,0 +1,3 @@ +function countchars + tr -d '\n' < $argv[1] | fold -w1 | sort | uniq -c | sort -nr +end \ No newline at end of file