#!/bin/bash if ["$1" = "-s"]; then wc -m *.md | sort -rn fi if ["$1" = ""]; then ls -l | awk '{print $9}' | xargs cat | LANG=C.UTF-8 wc -m fi