The Line Search Tool is a command-line utility written in C that allows you to search for a keyword within lines of text input from the standard input (stdin). It provides options for case-sensitive and case-insensitive search modes.
finder [-c] "key"
"key"
: The keyword to search for within the lines of text.-c
: (Optional) Perform a case-sensitive search.
- Search for a keyword within lines of text from stdin.
- Option for case-sensitive or case-insensitive search.
- Print the line number, index, and the found keyword in green.
To search for the keyword "apple" in case-sensitive mode:
finder -c "apple"
To perform a case-insensitive (default behavior) search for "apple":
finder "apple"
This project is licensed under the MIT License.