printf "%3.3s\n", 'Ho'; printf "%3.3s\n", 'Hogfather' printf "%3s\n", 'Hogfather'; # this prints Ho Hog Hogfather