Redirecting input from a file
You can redirect input in much the same way that you redirect output. A command that normally takes input from standard input can be redirected to take input from a file instead.
Example: To send
the file power to another user, issue:
mailx DEEJ <power
Result: The file power becomes input to mailx, rather than your input from the keyboard.