1 2 3 4 5
# Header. # replace all instances of "/usr/local" with "/usr" sed -i -e 's~/usr/local~/usr~g' somefile.txt || \ die "sed broke"