multiline sed commands
address{
command1
command2
command3
}
I am trying a substitution /XA/xx/ in lines 7 to 100 only if they contain the character "-"
sed 7,100{
s/-/XA/xx/
}
Am I supposed to run this as a sed script in an external file only cos when I type
sed 7,100{and type return
I get this error :
sed: 1: "7,100{": unexpected EOF (pending }'s)
What is wrong here?
PowerMac G4, iBook G4, MacBook Pro, iMac, Mac Pro, Mac OS X (10.5.7)