Bug#1011343: WISHLIST: Offical ALL-IN-ONE images?
"Thomas Schmitt" <[email protected]>
| Newsgroups | gmane.linux.debian.devel.cd |
|---|---|
| Message-ID | <15716371002356569219__31939.5088985161$1656234388$gmane$org@scdbackup.webframe.org> |
Hi, Zhang Boyang wrote: > Theoretically if both file is already sorted, we can use the `-m' option I like this idea. Just in case Debian grows to a million packages. But i understand that i would need two separate files for sorting. grep ' ./pool/' <merged_md5sum.txt | uniq >file1 fgrep -v ' ./pool/' <merged_md5sum.txt | polish_md5sum_txt >file2 sort -k 2 -m file1 file2 >temp_file More temporary files means more need for pre-existence tests and more cleanup effort. Currently i just have to concatenate two stdout streams. > However I don't think O(n * log(n)) is a bottleneck so we may just keep it > simple and stupid. Seems to be the best decision for now. (Unless some shell wizzard shows a way to pipe both streams separately into sort -m while staying dash compatible and without the need for new persistent file objects which have to be cleaned up afterwards.) Actually we did not yet identify a use case where md5sum.txt needs to be sorted at all. I only sort it because the input files are sorted. New version: https://dev.lovelyhq.com/libburnia/libisoburn/commit/0e8227e76ae4c4f24097cfac2f415ef8e25ae4e7 Have a nice day :) Thomas