I use the naming convention to help to sort files in a directory.
Under "ls" command linux,
I have all the project directories in the following order:
Quote:
04.07_01-SProject
04.07:01-SProject
04.07+01-SProject
04.07.02-SProject
04.070-SProject
04.07a01-SProject
04.07A01-SProject
04.07=SProject
04.07-SProject
04.07-T02-SProject
|
The names are created to illustrate my point.
Now, I would really like to ask "ls" to
display a project called 04.07+01-SProject
created later than 04.07-SProject
got listed below 04.07-SProject, like
04.07-SProject
04.07+01-SProject
but under ls,
I will get
04.07+01-SProject
04.07-SProject
It is a bit complicated but it is crucial for me to keep track
of different projects in "chronological" order.
The ls put the strength of characters according to
_ : + . 012 abcz ABC Z = -
I think the solution to this is to use the weaker characters such
as _ : + rather than the strongest character - from the very beginning (the weakest one _ has been outlawed by
me to make files due to some reason). Or overwrite the alphabatical order controlled by linux
convention.
I would have like the precedence goes like
- = + . 0 12 abc AB C Z
Can I change the precedance at will ?
I hope my question did not confuse you. This is an academic exercise.