
echo:ai:d79fc
echo "613 261225" | sed -r 's/[[:digit:]]{3}/contact # &/'
$ echo '613 261225' | sed -r 's/${[:digit:}]{3}/contact # &/'
try on your machine
This command will take the input '613 261225' and replace any 3 digit number with 'contact #
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- echo "613 261225" | sed -r 's/[[:digit:]]{3}/contact # &/'?