#!/bin/bashtext="manoeuvre man man trackman"replace="man"perl -spe 's/\s*(?!\B\w)\Q${replace}\E(?<!\w\B)//g' -- -replace="$replace" <<< "$text"
Standard input is empty
manoeuvre trackman
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!