sed: howto group regex's into AND/OR clauses?
OR and AND are hard to google for...
Is there anyway to change something like: Code:
echo "one two three four" | \ Code:
echo "one two three four" | \ |
Code:
alucard@organa:~$ echo "one two three four" | sed -r "s/(one|two|three|four)/five/g" |
Hi.
This single sed invocation in this script: Code:
#!/bin/sh Code:
% ./s1 |
Quote:
|
Hi.
I think AlucardZero understood better than I did ... cheers, makyo |
Quote:
- Jhwilliams |
All times are GMT -5. The time now is 01:23 PM. |