The code below will output whatever in file
word by word on the screen. For example:
Hello
will be displayed for 1 second and disappear. Then, the next word in the sentence will appear for a second and disappear and so on.
How do I output whatever is being displayed in the middle of the screen?
awk '{i=1; while(i<=NF){ print $((i++)); system("sleep 1; clear") }}' file