#!/bin/bashs="( - xi**2 + 2*xi - 1)"sed 's/( - xi\*\*2 + 2\*xi - 1)/k1/g' <<< "$s"sed -E 's/\( - xi\*\*2 \+ 2\*xi - 1\)/k1/g' <<< "$s"
Standard input is empty
k1 k1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!