Following is the content of the file "oscars.txt".

Christoph Waltz:2012

Christoph Plummer:2011

Jared Leto:2013

Christian Bale: 2010

Christoph Waltz:2009

Heath Ledger: 2008

Choose the command that would display the names of the winners from the year 2010 to 2012.

cat oscars.txt | grep "201" | cut -d ":" -f1

grep "2010-2012" oscars.txt | cut -d ":" -f1,2

cat oscars.txt | grep "201[0-2]"| cut -d ":" -f1

cat oscars.txt | grep "201[0-3]" | cut -d ":" -f1

Verified Answer
Correct Option - c

To get all Self Assessment - Introduction to Unix Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram