Introduction
Sometimes you want a command to read input from a file instead of typing it manually. Stdin redirection with the < symbol lets you do that by sending the file content as input to the command.
When you want to provide a list of items stored in a file to a command that reads from standard input.
When you want to test a program that reads input interactively by giving it input from a file instead.
When you want to automate feeding data to a command without typing it each time.
When you want to process a file line by line using a command that reads from stdin.
When you want to combine commands that expect input from the keyboard with file data.