How can I do the following...
A file something like this:
<some lines>
Test
<some lines>
I want to end up with:
<some lines>
Test
Test1
<some lines>
So basically, I want to replace "Test" with "Test<new line>Test1". Can't seem to do
it with sed, and would prefer to stay away from Perl. It won't necessarily be on the
same line number all the time either.
I could possibly read the entire file in:
While read line
Do
if [ "$line" = "Test" ]
then {
echo
echo "Test1"
}
fi
Done < ${FILE} > ${FILE}.tmp
Which I just thought of, but didn't try, since it seems "ugly".
Marco
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list