grep

Parameters:
Name Type Required Default Hint
input string false The piped input to be checked.
expression string false A regular expression to match against each line of the input. Only matching line will be output.

Command Usage

Search through string input and filter only matching lines. Pipe input in and supply a regular expression.

Find Brad's ForgeBox entries

forgebox show | grep Brad
Find recent install commands
history | grep isntall
Search log file for certain errors
cat myLogFile.txt | grep "variable .* undefined"