files used with < are called here files, < redirects standard input to the command.
e.g.:
here.txt contains
ls -1
echo "----------------"
df -h
echo "----------------"
exit
try sh < here.txt
the lines in here.txt will be used in sh as if a user where entering them.
as such herefiles are the complement to > which redirect standard output.
|