~/ learn/ comp-325/ cards/ The shell re-points a slot before the command runs
1 of 9

Three ways to get the same sorted output, two of them redirection

Three ways to get the same sorted output, two of them redirection

Answer

sort < students > sorted sort 0< students 1> sorted sort students > sorted

The first two are the same command written two ways — the explicit descriptor numbers change nothing. In the third, students is an argument, so sort opens it itself and descriptor 0 stays on the keyboard.

S&K 3e ch9 §9.3–9.5, §9.10

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/3751d12d-0bdc-4b7f-b4a3-f97e5c74133b/flashcard utf-8 LF