On Wed, Oct 29, 2003 at 08:06:38PM -0800, David Margolis wrote: > How do I do: 'sed s/$i\\/$i/$i/g' when $i might have it's own forward > slashes? The / character is arbitrary in sed expressions. Maybe try using 'sed s#$i\\/$i#$i#g' ? -Bryan R