When listing directories in Bash, I would like the value of numbers to be taken into account.
Currently this is the output I get:
$ ls
test_1.txt
test_11.txt
test_12.txt
test_2.txt
test_3.txt
As you can see, ls does not take the value of 11 and 12 into acount and lists it before 2, even though they are bigger numbers.
Is there some way to get the output to be this instead:
$ ls
test_1.txt
test_2.txt
test_3.txt
test_11.txt
test_12.txt
I've checked the man page and found nothing. Any ideas?
