Friday, November 19, 2010

How to replace some text in next line that forwards after matched to current line

#!/bin/sh
sed '/ONE/ {
N
s/TWO//
}' < text.txt > text.txt.tmp

No comments:

Post a Comment