How to display and refresh multiple lines in bash

后端 未结 5 800
孤独总比滥情好
孤独总比滥情好 2020-12-14 21:49

I am writing a installation script and would like to display the status of the script as it progresses.

example:

var1=\"pending\"
var2=\"pending\"
va         


        
5条回答
  •  心在旅途
    2020-12-14 22:15

    This does not completely solve your problem but might help; to print the status after the execution of each command, modify PS1 like this:

    PS1='$PS1 $( print_status )'
    

提交回复
热议问题