#!/bin/bashsed -Ee 's@(.*)(/word1)@\1\U\2@'
word1 /word1 word1 /word1 /word1
word1 /WORD1 word1 /word1 /WORD1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!