#!/bin/bash
sed -Ee 's@(.*)(/word1)@\1\U\2@'