$cat test.txt sept aug jan dec oct apr feb mar11 mar1 $sort test.txt apr aug dec feb jan mar1 mar11 oct sept $sort -M test.txt jan feb mar1 mar11 apr aug sept oct dec $
Tag Archives: sort
Bubble Sort Using C with array size 300
Sun Mar 23 21:34:32 IST 2014 real 0m0.002s user 0m0.000s sys 0m0.000s real 0m0.002s user 0m0.000s sys 0m0.000s real 0m0.001s user 0m0.000s sys 0m0.000s real 0m0.002s user 0m0.000s sys 0m0.000s real 0m0.002s user 0m0.000s sys 0m0.000s
ls -X sort alphabetically by entry extension
commandline session $ls -lX total 1144 -rwxr-xr-x 1 jeffrin jeffrin 115430 Sep 28 01:11 bwt -rwxr-xr-x 1 jeffrin jeffrin 129354 Sep 28 01:11 ds -rw-r–r– 1 jeffrin jeffrin 1063 May 18 19:23 Makefile -rw——- 1 jeffrin jeffrin 3793 Dec 13 2005 README -rwxr-xr-x 1 jeffrin jeffrin 141313 Sep 28 01:11 testlcp drwxr-xr-x 2 jeffrin jeffrin …
Continue reading “ls -X sort alphabetically by entry extension”
comm – compare two sorted files line by line
$comm sorta.txt sortb.txt d g comm: file 1 is not in sorted order e s x comm: file 2 is not in sorted order g s n $cat sorta.txt d g e s $cat sortb.txt x g s n $ $cat sorta.txt a b c d $cat sortb.txt a f g h $comm sorta.txt sortb.txt …
Continue reading “comm – compare two sorted files line by line”