A quick question: ls . | grep -E "^[0-9]" gives me the results in the following format:
ls . | grep -E "^[0-9]"
1 2 3 4 5
How can I let it be simply displayed as 1 2 3 4 5?
Try
ls . | grep -E "^[0-9]" | tr '\n' ' ' ; echo