Will513r / command-line-VWC

1 stars 0 forks source link

Search text within a file using `grep` #16

Open Will513r opened 1 year ago

Will513r commented 1 year ago

Summary

Learn to use grep for searching text within files. grep is a powerful command-line utility that lets you search through one or multiple text files for lines that match a regular expression pattern.


Description


Learning Tasks

  1. Introduction to grep:

    • Get familiar with' grep' and its basic syntax for searching text in files.
  2. Basic to Advanced Searching Techniques:

    • Learn to perform basic text searches and then move on to more advanced techniques like using regular expressions.
  3. Hands-on Practice:

    • Exercise 1: Use grep to search for a specific word in a text file.
    • Exercise 2: Use grep with flags to ignore case (-i) or to search recursively (`-r's).
    • Exercise 3: Perform a more complex search using regular expressions.
    • Exercise 4: Pipe the output of another command into grep to filter it.
  4. Troubleshooting:

    • Discuss common issues one might encounter when using grep and how to solve them.

Learning Goals


Priority

Will513r commented 1 year ago

GREP or Global Regular Expression Print is used for pattern matching to search for certain characters in files, which comes in handy when sifting through massive amount of files.

tupleHunden commented 1 year ago

Looks good to me