I dont find the way to use flag with sed
and matching pattern.
I'm trying to us the i flag. But I don't understand how it works.
$ sed -i '' -n '/xxx.xxx@xxx.fr/i d' res.txt
sed: 1: "/xxx.xxx@xxx.fr/i d": command i expects \ followed by text
So I want to match xxx.xxx@xxx.fr And XXX.XXX@XXX.FR
The -i ''
is only for --in-file (without cache)
the d
is for delete.
So how can I use flag and eventually multiple of them ? In the documentation I've found it was that way but it seems not to work at all.