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)
Why not just this to print the first 50 files:
ls -1 | head -50