Help with cat statement

I need help with this cat command.

I am trying to find messages in syslog.

Thanks.

cat /var/log/syslog | grep -i bluetooth or journalctl | grep -i bluetooth
grep: or: No such file or directory
grep: journalctl: No such file or directory

The OR operator is the vertical bar | and needs to be escaped. Following your example,

cat /var/log/syslog | grep -i "bluetooth | journalctl"

Thanks.

The -i switch should make finding bluetooth case insensitive but it did not find Bluetooth lines in the file?

remove the spaces before and after |

file andy contains:

just a line
This line has something
this is bluetooth
this is uppercase Bluetooth

command

> cat andy | grep -i "bluetooth\|This"

result

This line has something
this is bluetooth
this is uppercase Bluetooth