[code]head -n 3 emp.lst | tr ‘[a-z]’ ‘[A-Z]’[/code] Above command will change the case of text from lower to upper.

Answer: a
Explanation: Since we know that tr command doesn’t accept the filename as an argument, the input has to be redirected from a file or a pipe. Above command will change the case of first three lines of emp.lst from lowercase to uppercase.
 

Tìm kiếm

Back
Top