2 # This script is meant to be called with a string to grep with; however
3 # If no string is provided, the program should still work
7 # Find the length of the helpfile, subtract the license (37 lines)
8 num_lines=$(cat src/helpfile | wc -l)
10 print_lines=$((num_lines-license_lines))
13 if [ -n "$grep_string" ]; then
14 tail src/helpfile -n $print_lines | grep $grep_string
16 tail src/helpfile -n $print_lines