A script named process_users.sh expects entries from standard input. Which command sends the contents of users.csv into the script’s input so it processes each line?
The < operator redirects a file to a program’s standard input. In this case, ./process_users.sh < users.csv feeds the file into the script correctly. Passing the filename as an argument does not send it to the input stream, appending with >> affects output rather than input, and using << without a proper delimiter invokes a here-document, not a file redirect.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the '<' operator do in command line input?
Open an interactive chat with Bash
What happens when you use './process_users.sh users.csv' instead?
Open an interactive chat with Bash
What is a here-document and how does it differ from input redirection?