A small collection of Bash scripts for practicing typing and experimenting with simple terminal input handling.
Features
- Interactive typing practice driven by plain text exercises (ex*.txt).
- Small helper scripts: generator.sh to produce exercises, read_key.sh for low-level key reads.
Prerequisites
- A POSIX-compatible shell (bash / sh)
- Make scripts executable:
chmod +x *.sh
Usage
-
Make scripts executable:
chmod +x bash_typist.sh generator.sh read_key.sh -
Run the typing practice with a sample exercise file:
./bash_typist.sh ex01.txt -
Generate a custom exercise (simple usage):
./generator.sh > my_ex.txt
./bash_typist.sh my_ex.txt
Files:
bash_typist.sh— main typing practice scriptgenerator.sh— creates exercise text based on typing errorread_key.sh— helper to read single keystrokesex01.txt..ex05.txt— sample exercisesanalyze_err.sh— helper for analyzing errors