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 '$sort' worked
$ 4.2.20 33 534--->

Leave a comment

Your email address will not be published. Required fields are marked *