Redirect data to
stdin
. More information: https://gnu.org/software/bash/manual/bash.html#Redirecting-Input.
stdin
(achieves the same effect as cat file.txt |
):command < path/to/file.txt
stdin
(requires a multiline command):command << EOF <Enter> multiline_data <Enter> EOF
stdin
(achieves the same effect as echo string |
):command <<< string