InterviewSolution
Saved Bookmarks
| 1. |
To sort all lines from current cursor to end of line, ____ can be used.(a) sort .,$(b) sort !G(c) sort !,G(d) !GsortI had been asked this question in an interview for internship.My question is based upon Operator-Command Combinations in division Advanced Vi of Unix |
|
Answer» RIGHT CHOICE is (d) !Gsort The explanation: The sort command is combined with ! and G OPERATOR for sorting from current CURSOR to the END of the line. |
|