[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to read from terminal in a script when the stdin is taken from a fil
From: |
Peng Yu |
Subject: |
How to read from terminal in a script when the stdin is taken from a file? |
Date: |
Sat, 17 Apr 2021 17:43:41 -0500 |
Suppose a script is called with stdin from a file.
./script.sh < file
Within the script, I want to read from the terminal in which the
script is called. A plain read command will not work, could anybody
let me know what is the correct way to call `read` so that it will
read from the terminal?
Thanks.
--
Regards,
Peng
- How to read from terminal in a script when the stdin is taken from a file?,
Peng Yu <=