comm --check-order file1 file2 aa bb cc dd xx comm: file 2 is not in sorted order. bbs.archlinux.org. ==> Finished making: linux-BFS 3.2.5-100 (Mon Feb 6 ...
nice -n -20 ionice -c2 -n7 sort --parallel=2 -uo list-sorted.txt list.txt
points in your process. Here's just one: comm <(sed 's/[^0-9]// g' file1.txt | sort) <(sed 's/[^0-9]//g' file2.txt | sort).
file 1 -2 FIELD join on this FIELD of file 2 --check-order check that the input is correctly sorted
Parallel sort echo usage: psort file1 file2 echo Sorts text file file1 and
sort on Red Hat Enterprise Linux (RHEL) 6 does not behave as expected
There are also corresponding local versions of the fnbr options that are
0 if no error occurred 1 if invoked with -c or -C and the input is not sorted 2 if an
sort -k1,1n -k2,2n -k3,3n foo.bed chr1 1 2 chr2 3 4 chr3 5 6 chr4 7 8 chr11 9 99 chr11 9 100 chr20 11 12 chrX 100 101. Sorting only on the first and second columns may not guarantee expected ordering,
As it seems - your linux sort is not preserving proper UTF-8 order. Hex UTF-8 representations of your unsorted.txt (first letters) would be: ウ - 30A6. foo - 0066.