Clearing the standard input in shell script
I have a shell script, having more than one user input.
I want to clear/flush the stdin before the read command, as it is creating problem if user pressed more than one enter key for one read. Code:
#!/bin/sh |
You might try to put
Code:
read -t0 |
All times are GMT -5. The time now is 06:54 PM. |