$ 0 0 B - ... (Triple Dots)https://atcoder.jp/contests/abc168/tasks/abc168_bread -r K read -r S if [ "${K}" -lt "$(echo -n "${S}"|wc -c)" ]; then echo "${S:0:$K}"... else echo "${S}" fi