PrepAway - Latest Free Exam Questions & Answers

Which of the following commands will find the string foo in file1.txt, regardless of foo being in upper or low

Which of the following commands will find the string foo in file1.txt, regardless of foo being in upper or lowercase letters?

PrepAway - Latest Free Exam Questions & Answers

A.
cat file1.txt | grep -i foo

B.
cat file1.txt > grep -n foo

C.
grep -i foo | file1.txt

D.
grep -n file1.txt < foo

E.
grep -n foo file1.txt

Explanation:
grep option -i tells grep to work case insensitive.

6 Comments on “Which of the following commands will find the string foo in file1.txt, regardless of foo being in upper or low

  1. An impressive share! I have just forwarded this onto a co-worker who
    was doing a little research on this. And he actually bought me lunch simply because I stumbled upon it for
    him… lol. So let me reword this…. Thanks for the meal!!
    But yeah, thanks for spending the time to talk about this topic here on your web page.




    0



    0
  2. Bertha says:

    The Leimo Personal Hair Laser Starter Kit promotes hair regrowth in three (3) steps:
    . Auspiciously, there are no identified risks related with
    low-level laser treatment. Hair – Max Comb is more than just like
    any other comb, but is very easy to use and can enhance natural hair growth when you used on a
    regular basis.




    0



    0

Leave a Reply