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

Christoph Waltz:2012

Christopher Plummer:2011

Jared Leto:2013

Christian Bale: 2010

Christoph Waltz:2009

Heath Ledger: 2008

Sort the file so that the file appears in the ascending order of year.

cat oscars.txt | cut -d ":" -f2 | sort -n

cat oscars.txt | sort -n

cat oscars.txt | sort -nt " " -k3

cat oscars.txt | sort -nt ":" -k2

Verified Answer
Correct Option - d

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

Telegram