Read from the controlling terminal device:
read input </dev/tty
more info: http://compgroups.net/comp.unix.shell/Fixing-stdin-inside-a-redirected-loop
More Related Contents:
- While loop stops reading after the first line in Bash
- Redirect stderr and stdout in Bash [duplicate]
- How to detect if a script is being sourced
- Using variables inside a bash heredoc
- Assignment of variables with space after the (=) sign?
- How can I exclude all “permission denied” messages from “find”?
- How to get a password from a shell script without echoing
- Exit Shell Script Based on Process Exit Code [duplicate]
- How can I use Bash syntax in Makefile targets?
- How do I pass in the asterisk character ‘*’ in bash as arguments to my C program?
- Delete files older than 10 days using shell script in Unix [duplicate]
- Remove Unicode characters from textfiles – sed , other Bash/shell methods
- How to replace an entire line in a text file by line number
- Simulating ENTER keypress in bash script
- Piping both stdout and stderr in bash?
- Why aliases in a non-interactive Bash shell do not work
- Using case for a range of numbers in Bash
- How to run some command before or after every Bash command entered from console?
- Script to get the HTTP status code of a list of urls?
- How to cd into a directory with space in the name?
- What is your single most favorite command-line trick using Bash? [closed]
- Execute a shell function with timeout
- How to parse $QUERY_STRING from a bash CGI script?
- Read a file by bytes in BASH
- How can I print each command before executing? [duplicate]
- Using Bash to display a progress indicator (spinner) [duplicate]
- Can parameter expansion be nested in Bash? [duplicate]
- Retry a Bash command with timeout
- Read n lines at a time using Bash
- Missing Carriage Return in Docker for Mac Containers