Profile
Achievement
niglesias's Recent SnippetsTagged Bash
- All /
« Prev 1 Next »
Empties the keyboard buffer. Useful to discard keyboard input during a command execution inside a bash script.
Try this script without this line:
read -t 0.1 -N 255
and enter any garbage ([ENTER] and all) during these 2 seconds window...
Th...
0
796
posted 13 years ago by niglesias