how do i implement a script that asks user to input a word. it should ask for input a word continuously until the word is longer than 5 characters then stop.
this is what i have so far
#!/bin/bash
read -p "enter word" word1
while [ "word1"; -lt 5 ]; do
echo "continue"
done