Question: Create a file named foo that contains lines that begin with # , / * , or / / Blank lines - - lines that

Create a file named foo that contains
lines that begin with #,/*, or //
Blank lines -- lines that contain nothing
lines that do NOT begin with #,/*, or //
Derive a grep command that locates and prints all nonblank lines that dont begin with #,/*, or // in that file.
Hint: first, specify a pattern that matches lines that do begin with #,/*, or //, or simply blank. Then use the v option for grep to negate it. Show ALL steps. This includes creating the file "foo" and all the steps that follow to answer the question.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!