#!/usr/bin/env bash # s/old/new/g replaces ALL matches per line echo "foo boo zoo" | sed 's/o/0/g'
replace every match on each line