Answer by Dennis Williamson for "tail -f" alternate which doesn't scroll the...
Combining several ideas from other answers plus a couple of other tricks, this will output the file without clearing the screen or scrolling (except for the first cycle if the prompt is at the bottom...
View ArticleAnswer by Jander for "tail -f" alternate which doesn't scroll the terminal...
The canonical (and easiest, and most flexible) answer is watch, as others have said. But if you want to see just the first line of a file, here's an alternative that neither clears nor scrolls the...
View ArticleAnswer by Omnifarious for "tail -f" alternate which doesn't scroll the...
My favorite, which works in places that don't have watch, is this:while true; do clear ; cat /proc/acpi/battery/BAT1/state ; sleep 10; done
View ArticleAnswer by gabuzo for "tail -f" alternate which doesn't scroll the terminal...
watch is your friend. It uses curses so it won't scroll your terminal.Usage: watch [-dhntv] [--differences[=cumulative]] [--help] [--interval=<n>] [--no-title] [--version] <command> -d,...
View ArticleAnswer by SiegeX for "tail -f" alternate which doesn't scroll the terminal...
watch -n 10 cat /proc/acpi/battery/BAT1/stateYou can add the -d flag if you want it to highlight the differences from one iteration to the next.
View Article"tail -f" alternate which doesn't scroll the terminal window
I want to check a file at continuous intervals for contents which keep changing. "tail -f" doesn't suffice as the file doesn't grow in size.I could use a simple while loop in bash to the same...
View Article
More Pages to Explore .....