Multiple choice unix

Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?

  1. -m.n

  2. m.n

  3. n.m 1

  4. (m l).n

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In the Unix 'sort' command, the notation 'm.n' is used to specify a starting position for sorting. 'm' refers to the field number (skipping m fields) and 'n' refers to the character offset within that field. This allows for fine-grained control over the sort key.

AI explanation

To start sorting after the nth column of the (m+l)th field, the option to be used with the sort command is m.n.

Option A) -m.n - This option is incorrect because the - symbol is used to reverse the sorting order, not to specify the starting column.

Option B) m.n - This option is correct because it specifies that the sorting should start after the nth column of the (m+l)th field.

Option C) n.m 1 - This option is incorrect because the order of the values is reversed. The correct format is m.n.

Option D) (m l).n - This option is incorrect because it uses parentheses, which are not required in the syntax of the sort command.

Therefore, the correct answer is option B) m.n. This option is correct because it specifies the correct syntax to start sorting after the nth column of the (m+l)th field.