linux - How to turn command output to a live status update? -
i curious if there's tool or easy way continually execute command in given intervals, , reprint output same place on screen.
the example prompted me think 'dropbox-cli status'. manually executed:
$> dropbox-cli status syncing (6,762 files remaining) indexing 3,481 files... $> dropbox-cli status syncing (5,162 files remaining) indexing 2,681 files...
i looking for:
$> tracker --interval=1s "dropbox-cli status" syncing (6,743 files remaining) indexing 3,483 files
the imaginary command 'tracker' block , 2 output lines continually reprinted on every second, rather creating appending log output.
Comments
Post a Comment