How can I watch the output that was filtered with grep?
Solution 1:
You need to enclose the piped command in quotes as follows:
watch -n 2 'gsettings list-recursively|grep text-scal'
This will execute the command gsettings list-recursively|grep text-scal
and watch
it every two seconds. Note that the time interval is in seconds.
Refer to watch's manual page for more.