~/ 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/451509a4-4a8f-4bf6-8d89-6b3e524ece6a/flashcard utf-8 LF