The following command will_________ [code]!! tr ‘[a-z]’ ‘[A-Z]’[/code]

Thành Đạt

New member
The following command will_________
Code:
!! tr ‘[a-z]’  ‘[A-Z]’
A. throw an error
B. undefined behavior
C. changes the case of the current line from lower to uppercase
D. changes the case of current line from upper to lowercase
 
Answer: c
Explanation: The ! operator when doubled is used for operating on current line. For example, we can change the case of current line from lowercase to uppercase by using the above command.
 

Tìm kiếm

Back
Top