#!/bin/bash
echo "WORD1 %WORD2% WORD3" | sed "s/WORD1.*WORD3/WORD1 WORD3/g"