I've recently started learning sed. I did
$seq 10 | sed '/[^049]/d'
I was expecting
4
9
10
as output. But I got
4
9
Where am I making mistake in understanding this regex?
|
I've recently started learning
I was expecting
as output. But I got
Where am I making mistake in understanding this regex? |
||||
|
|
|
The |
|||||||
|
|
If you really want to show lines containing '0', '4', or '9', here's how:
The Alternatively, you can always use
|
|||
|
|