Watch problem

These run individually, but not together.

I want to show both temp and fan speed.

watch -n 0.2 "sensors -f | grep "temp4""
watch -n 0.2 "sensors -f | grep "fan1""

Please use code tags for code.

watch -n 0.2 "sensors -f | egrep "temp4|fan1"
1 Like
andy@7_~/Downloads$ watch -n 0.2 "sensors -f | egrep "temp4|fan1"
> 
./Watch_Command.sh: line 9: unexpected EOF while looking for matching `"'
./Watch_Command.sh: line 10: syntax error: unexpected end of file
 watch -n 0.2 "sensors -f | egrep 'temp4|fan1'"
1 Like

Thanks.