I've got a bunch of PDFs that I'm trying to append together, and I've got a program that, given a list of files, will append them to one PDF.
The issue I'm having is that piping the file names to sort does not produce the desired order. None of the flags of sort give me what I want either. I've got some examples below:
Desired sort order:
test1.pdf
test2.pdf
test10.pdf
Achieved sort order using sort:
test1.pdf
test10.pdf
test2.pdf
For more info on exactly what constitutes the sort order I desire, see:
http://msdn.microsoft.com/en-us/library/bb759947.aspx
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…