I found another interesting item while reading the LFS bootscripts. If you need to sort files ordered by version numbers instead of alphabetically, use ls -v. For example, if you have files S7, S10, S20, S100 and S1, ls -v will sort them like this: S1 S7 S10 S20 S100