On Sat, August 16, 2008 16:59, John Patrick wrote: > $ sed "s/`pwd`/ROOT_DIR/g" TEST > TEST > $ sed "s/$PWD/ROOT_DIR/g" TEST > TEST Firstly: sed s/search/replace/ Secondly, don't use / with ", use | $ sed "s|ROOT_DIR|`pwd`|g" TEST > TEST $ sed "s|ROOT_DIR|$PWD|g" TEST > TEST -- John Crowhurst John's Computer Support