|XP is just a number|
Re^5: Data managing problemby BrowserUk (Pope)
|on Feb 22, 2013 at 14:10 UTC||Need Help??|
The printf is used to ensure that should the line numbers jump from single digit to two
The sprintf pads the lines numbers with leading zeros so the sort correctly. Ie so that they do not sort as:
%05u means we can correctly sort files with upto 99999 lines. If you need more change the number in the format.
Does the sort at the end assume that the input ( and the required output after removing rows ) is sorted
Why would sort "assume its input was sorted"? We are sorting them because we know they will not be. That's why we added the line numbers so that we can put the, back into the input ordering. Perhaps the following where I've left the line numbers in place will clarify things?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.