LPI
101-500 · Question #286
You want to the command foo to take its input from the file foobar and send its output to the program bar. Which of the following command lines will do this?
The correct answer is A. foo < foobar | bar. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
Question
You want to the command foo to take its input from the file foobar and send its output to the program bar. Which of the following command lines will do this?
Options
- Afoo < foobar | bar
- Bfoo < foobar > bar
- Cfoo | foobar > bar
- Dfoo | bar < foobar
- Efoo > bar < foobar
How the community answered
(18 responses)- A78% (14)
- B6% (1)
- D11% (2)
- E6% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#input redirection#pipes#command composition#shell redirection
Community Discussion
No community discussion yet for this question.