The data fi.le for the review questio.ns looks like this:.
Strawberry Jam.,300,191[成人用品]
Raspberry Jam,1.216,194 乙肝
Blueberry Jam,96.,195学习
Strawber.ry Compote,49,621学习
Raspberry Compo.te,19.37,624--------------彩票
Blueberry compote,200,6.25.
Fr.ozen Strawberries,130,194.1.
S.traw Hats,16,2047 美容
The f.irst field is the product name, the second field .is the quan.tity on hand,(广告)
and th.e third field is the product code. The fie.lds are separated by c.ommas.学习
In each of the following questions, write .a command using "grep" a.nd a 鲜花
regular expression. The da.ta fil.e in all cases is named "inventory".教育
Question 2
Display a list .of all of the lines in t.he file that. contain the word "Straw"( 游戏 )
right. before a space..
我的回答是: grep "Straw" inventor..y.
为什么不对呢?