grep¶ grep for multiple patterns¶ grep for bluetooth and dbus systemctl list-unit-files | grep -E "bluetooth|dbus" find only lines which do not start with #¶ useful to only see configured settings in config files etc., it'll also omit empty lines: grep -vE '^#|^$' filename