BASH - Files - Read a file

Read a file (data stream, variable) line-by-line (and/or field-by-field).


Basic read

Input source selection

Read fields from a file

Read from a command instead of a regular file

Read from an interactive shell

Skip Reading Comments

Troubleshooting