On 2014-12-03, Hal Wigoda hal.wigoda@gmail.com wrote:
You have to do cat domain in back tiks
instead of read domain.
This is an error you can't blame on your device. domain is not a file, but a bash variable. read takes stdin (which is what the OP's snippet is doing) and populates the named variable(s) (domain in this case).
--keith