Loading practice questions
Unix command to change the case of first three lines of file “shortlist” from lower to upper
Correct Answer: B — $ head -3 shortlist | tr '[a-z]' '[A-Z]'
Explanation:
The head -3 command extracts the first three lines of the file, which are then piped into the tr command to translate lowercase characters to uppercase.