Ask Question
25 August, 04:57

Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the terminal. Which of the following commands could Garrett use to perform this search? a. grep - E " (John|Bob) " salesemployees. csv

b grep - E (John|Bob) salesemployees. csv

c. egrep (John|Bob) salesemployees. csv

d. grep (John|Bob) salesemployees. csv

+3
Answers (1)
  1. 25 August, 05:09
    0
    A. grep - E " (John|Bob) " salesemployees. csv

    Explanation:

    The grep command is used to search text. It searches the given file for lines containing a match to the given strings or words.

    How to use Grep Command:

    grep 'letter' filename - Search any line that contains word 'letter' in filename on Linux

    grep - i 'Alphabet' file1 - A case-insensitive search for the word 'Alphabet' in Linux and Unix

    grep - R 'root'. - Search all files in the current directory and in all of its subdirectories in Linux for the word 'root'
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers