### ----------------------------------------------------
### -- App::Rak
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: resources/help/examples.txt
### ----------------------------------------------------
Examples:
‒‒‒‒‒‒‒‒‒

# Find all occurrences of the pattern ‘patricia’ in a file
$ rak patricia myfile

# Same as above but looking only for complete words
$ rak patricia myfile --type=words

# Count occurrences of the exact pattern FOO
$ rak FOO myfile --count-only

# Same as above but ignoring case
$ rak FOO myfile --count-only --ignorecase

# Find all occurrences of the pattern ‘.Pp’ at the beginning of a line
$ rak .Pp myfile --type=starts-with

# Find all lines in a file which do not contain the words ‘foo’ or ‘bar’
$ rak '/ << foo | bar >> /' myfile --invert-match

# Peruse the file ‘calendar’ looking for either 19, 20, or 25
$ rak '/ 19 | 20 | 25 /' calendar

# Show the 20 most frequent words in lowercase
# rak '*.match(/ \w+ /, :g)>>.lc.Slip' --frequencies --only-first=20

# Rename files with 3 digits word bounded with an interval of 10
$ rak '*.subst(/ << \d ** 3 >> /, { ($*N += 10).fmt("%03d") })' --rename-files

# Show all line the same as the previous line
$ rak '{ state $last = ""; LEAVE $last = $_; $_ eq $last }'


