(java) bubble sort testing… 0.00002 Ver — 13 No.’s Related

$ 4.2.20 5 505—> time java BubbleSort real 0m0.218s user 0m0.160s sys 0m0.040s $ 4.2.20 6 506—> time java BubbleSort real 0m0.214s user 0m0.148s sys 0m0.044s $ 4.2.20 7 507—> time java BubbleSort real 0m0.210s user 0m0.140s sys 0m0.052s $ 4.2.20 8 508—> time java BubbleSort real 0m0.206s user 0m0.156s sys 0m0.032s $ 4.2.20 9 …

POSIX character classes in relation to regular expressions

commandline session $ 4.2.20 43 543—> export LANG=en_IN $ 4.2.20 44 544—> ls Algorithms/[A-Z]* Algorithms/filereading.c Algorithms/wordmatch.c $ 4.2.20 45 545—> export LANG=POSIX $ 4.2.20 46 546—> echo $LANG POSIX $ 4.2.20 47 547—> locale LANG=POSIX LANGUAGE=en_IN:en LC_CTYPE=”POSIX” LC_NUMERIC=”POSIX” LC_TIME=”POSIX” LC_COLLATE=”POSIX” LC_MONETARY=”POSIX” LC_MESSAGES=”POSIX” LC_PAPER=”POSIX” LC_NAME=”POSIX” LC_ADDRESS=”POSIX” LC_TELEPHONE=”POSIX” LC_MEASUREMENT=”POSIX” LC_IDENTIFICATION=”POSIX” LC_ALL= $ 4.2.20 48 548—> ls Algorithms/[A-Z]* …

grep . Traditional Character Ranges.

commandline session $ 4.2.20 2 502—> cat worked Bubble sort Selection sort Insertion sort Shell sort Comb sort Merge sort Heapsort Quicksort Counting sort Bucket sort Radix sort Distribution sort Timsort $ 4.2.20 3 503—> grep -h ‘^[A-Z]’ worked Bubble sort Selection sort Insertion sort Shell sort Comb sort Merge sort Heapsort Quicksort Counting sort …

grep . bracket expressions [ ]

commandline session $ 4.2.20 14 514—> grep ‘[bg]zip’ worked $ 4.2.20 15 515—> grep ‘[bg]sort’ worked $ 4.2.20 16 516—> grep ‘[b ]sort’ worked Bubble sort Selection sort Insertion sort Shell sort Comb sort Merge sort Counting sort Bucket sort Radix sort Distribution sort $ 4.2.20 17 517—> grep ‘[b ]sort’ worked Bubble sort Selection …

grep . regular expression _ anchors $ and ^ (meta characters)

commandline session $ 4.2.20 29 530—> grep -h ‘^sort’ worked $ 4.2.20 30 531—> grep -h ‘sort^’ worked $ 4.2.20 31 532—> grep -h ‘sort$’ worked Bubble sort Selection sort Insertion sort Shell sort Comb sort Merge sort Heapsort Quicksort Counting sort Bucket sort Radix sort Distribution sort Timsort $ 4.2.20 32 533—> grep -h …

grep . dot meta character

commandline session $ 4.2.20 37 537—> grep rt worked Bubble sort Selection sort Insertion sort Shell sort Comb sort Merge sort Heapsort Quicksort Counting sort Bucket sort Radix sort Distribution sort Timsort $ 4.2.20 38 538—> grep p.rt worked $ 4.2.20 39 539—> grep ..rt worked Bubble sort Selection sort Insertion sort Shell sort Comb …

grep . global regular expression print . (name of file)

commandline session $ 4.2.20 15 515—> grep -L ar /usr/sbin/* /usr/sbin/add-shell /usr/sbin/cracklib-format /usr/sbin/remove-shell /usr/sbin/su-to-root /usr/sbin/tzconfig /usr/sbin/update-grub /usr/sbin/update-grub2 /usr/sbin/update-icon-caches /usr/sbin/update-icon-caches.gtk2 $ 4.2.20 16 516—> $ 4.2.20 12 512—> ls /usr/sbin/ | grep -l ar (standard input) $ 4.2.20 13 513—> grep -l ar /usr/sbin/ $ 4.2.20 14 514—> grep -l ar /usr/sbin/* /usr/sbin/a2dismod /usr/sbin/a2dissite /usr/sbin/a2enmod /usr/sbin/a2ensite …

grep . global regular expression print

commandline session $ 4.2.20 1 501—> ls /usr/sbin/ | grep kernel $ 4.2.20 2 502—> ls /usr/sbin/ | grep ker cracklib-packer cracklib-unpacker $ 4.2.20 3 503—> ls /usr/sbin/ | grep linux $ 4.2.20 4 504—> ls /usr/sbin/ | grep lin update-ccache-symlinks $ 4.2.20 5 505—> ls /usr/sbin/ | grep li cracklib-check cracklib-format cracklib-packer cracklib-unpacker create-cracklib-dict …