If I have a list like this:
aaa
bbb
ccc
ddd
eee
fff
ggg
Is there a command where I can specify for aaa and bbb?
I know if I want to search for aaa I can do: sed -n '/aaa/p'
But is there a way I can search for bbb at the same time as I am searching for aaa?
Something like this? sed -n '/aaa/bbb/p'