Ich möchte die Abfrage
sudo cryptsetup luksDump /dev/sda4
mit grep filtern nach allen Zeilen, die entweder "ENABLED" oder "UUID" enthalten.
dump sda4 |egrep -w "ENABLED","UUID"
funktioniert nicht, während
stepfahn@lubu16:~$ dump sda4 |egrep -w "ENABLED","UUID" Start:=21:13:30.984415774 Ende: =21:13:31.037194319 stepfahn@lubu16:~$ dump sda4 |egrep -w "ENABLED" Key Slot 0: ENABLED Key Slot 1: ENABLED Key Slot 2: ENABLED Key Slot 3: ENABLED Start:=21:13:37.594671595 Ende: =21:13:37.641408195 stepfahn@lubu16:~$ dump sda4 |egrep -w "UUID" UUID: da400000-1234-5678-9abc-123456789abc Start:=21:13:46.520397255 Ende: =21:13:46.563030232 stepfahn@lubu16:~$
einzeln tadellos funktionieren. Wie werden die Suchausdrücke verkettet?