I'm curious... OP says he wants the sizes of 10 files in a given directory; when I run `du -h` I seem to be getting the sizes of all the directories within my current directory. Is that what OP wants?
Never mind above - I never gave it a directory name!
Well anyhow, here's a way to get rid of the last line of a list of lines:
And also, in case OP is interested, here's another (example) way of neatly printing the sizes and filenames of files
in the current directory:
find . -maxdepth 1 -type f -printf "%-10s%f\n"