Grep in a directory

broken image

Use the backslash before pipe | for regular expressions. The patterns need to be enclosed using single quotes and separated by the pipe symbol. The basic grep syntax when searching multiple patterns in a file includes using the grep command followed by strings and the name of the file or its path.

broken image
broken image

A user with permissions to access the necessary files and directories.