Artificial intelligent assistant

Invalid command code with sed This is the command I am using: system_profiler | sed -n -e '/SATA/SATA Express:/,/Software:/ p' It gives me this error sed: 1: "/SATA/SATA Express:/,/S ...": invalid command code S I don't see why it doesn't work especially when this almost identical command works: system_profiler | sed -n -e '/Hardware Overview:/,/Installations:/ p' I don't know? There's no reason to escape S.

Escape the `/` between `SATA` and `SATA Express:` to make it literal:


system_profiler | sed -n -e '/SATA\/SATA Express:/,/Software:/ p'


or use a different delimiter using this syntax:


system_profiler | sed -n -e '\|SATA/SATA Express:|,/Software:/ p'

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 6869a74cbe67ac2f02d97fd0cf7c1abe