Month: April 2012

How does bracket expression and negation [^ ] work with grep ?

commandline session $ 4.2.20 19 519—> grep ‘[^b ]sort’ worked Heapsort Quicksort Timsort $ 4.2.20 20 520—> 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 21 521—>

Read More

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 …

Read More

tweak tool icon 0.00001

commandline session Tweak Tool Icon

Read More

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 …

Read More

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 …

Read More

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 …

Read More

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 …

Read More

(java) bubble sort testing… 0.00001 Ver — 6 No.'s Related

$ 4.2.20 4 504—> time java BubbleSort real 0m0.254s user 0m0.160s sys 0m0.068s $ 4.2.20 5 505—> time java BubbleSort real 0m0.208s user 0m0.152s sys 0m0.036s $ 4.2.20 6 506—> time java BubbleSort real 0m0.209s user 0m0.124s sys 0m0.064s $ 4.2.20 7 507—> time java BubbleSort real 0m0.210s user 0m0.144s sys 0m0.044s $ 4.2.20 8 …

Read More

ant – a Java based make tool.

commandline session $ 4.2.20 153 1003—> ant compile Buildfile: /home/jeffrin/java/beautifulprograms/build.xml copyjars: compile: [javac] /home/jeffrin/java/beautifulprograms/build.xml:36: warning: ‘includeantruntime’ was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 1 source file to /home/jeffrin/java/beautifulprograms/war/WEB-INF/classes BUILD SUCCESSFUL Total time: 6 seconds $ 4.2.20 154 1004—>

Read More

bubble sort in java

commandline session /* Java Bubble Sort Example This Java bubble sort example shows how to sort an array of int using bubble sort algorithm. Bubble sort is the simplest sorting algorithm. */ public class BubbleSort { public static void main(String[] args) { //create an int array we want to sort using bubble sort algorithm int …

Read More