In bash, how can I print the first n elements of a list?
bash
n
For example, the first 10 files in this list:
FILES=$(ls)
FILES=$(ls) echo $FILES | fmt -1 | head -10