The name of the input and output files cannot be same while using sort command.

The name of the input and output files cannot be same while using sort command.
A. True
B. False
 
Answer: b
Explanation: Even though we can redirect the output of sort to a file, we can also use its -o option for specifying the output file. And the interesting fact is, the name of the input and output file can be same. For example,
Code:
$ sort  -o  sortedlist  -k  3  shortlist       // output stored in sortedlist
$ sort  -o shortlist  shortlist               // output stored in the same file
 

Tìm kiếm

Back
Top