H
H
HelpMePlease22020-04-25 04:18:36
bash
HelpMePlease2, 2020-04-25 04:18:36

How to update a string in bash?

How to make a line with text appear, and after a second the text in the same line has changed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2020-04-25
@HelpMePlease2

Use terminal characters-commands:
printf "\r" # return to the beginning of the line
printf "\033[K" # delete everything up to the end of the line
More commands

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question