What does watch -w or –no-linewrap option do?

You can use watch -w or –no-linewrap option to turn off line wrapping. Long lines will be truncated instead of wrapped to the next line.

Example:

Create and execute a script that inserts one long line every sec indefinitely:

watch -w or –no-linewrap option example:

Leave a Reply