grep grep grep grep grep grep grep grep grep grep

Here is an "mini thread" to learn some cool tricks about grep.

#linux #cybersecurity #bugbounty
Let's say this is our input file
Ignoring the case sensitivity of your search term
Performing the reverse search
Return the Number of Matches
Searching regular Expressions.
Get the search pattern from the file
Print the filename with each pattern match
print the line number where match was found
Print N number of line after the Last Match (-A [after])
Print N number of line before the first Match (-B [before])
Print Only the Matching part
Add color to the matched string [red]
You can follow @imranparray101.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled:

By continuing to use the site, you are consenting to the use of cookies as explained in our Cookie Policy to improve your experience.