#!/bin/sh
echo $PATH
PATH=`echo $PATH | sed -re 's/\/usr\/local\/cmake-[[:digit:]].[[:digit:]][[:digit:]]*\/bin(:)?//'`
echo $PATH

#!/bin/sh
echo $PATH
PATH=`echo $PATH | sed -re 's/\/usr\/local\/cmake-[[:digit:]]\.[[:digit:]][[:digit:]]\.[[:digit:]]+\/bin//'`
echo $PATH

Add more version number to sed
Add more version number to sed

