New answers tagged

0 votes

Accurately overwriting previous lines of bash terminal output when text is wider than terminal (e.g. wraps mutliple lines)?

An old question but.... If combine the \r already mentioned with printf's %s precision options gives you a space paded fixed width field that you can overwrite as much as you like This is not how I'd ...
Tristan Ball's user avatar
0 votes

Output print statement in python does not goes into cron log

Compare: python3 -c 'import time; print("foo"); time.sleep(1); print("bar")' With: python3 -c 'import time; print("foo"); time.sleep(1); print("bar")' | cat ...
Stéphane Chazelas's user avatar

Top 50 recent answers are included