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

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in

Updated on Thu, 11 Dec 2025