7
rated 0 times
[
7]
[
0]
/ answers: 1 / hits: 4656
/ 3 Years ago, fri, october 22, 2021, 2:55:31
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
More From » command-line