|
sed (assigning two or more patterns) ?
hi, how does regular expression for "or" and "and" work in sed?
like if I want sed to find and do something only with the lines that contain "abc" or "123" pattern. or lines that have "abc" and "123" both.
I normally use this regular expression for that: ."*{abc,123}.*" but itdoesnt work in sed.
can anyone fix this line for me?
sed '.*{abc,123}.*/s# etc...' filename
|