Rainer Müller wrote: > You have to quote the replace pattern, otherwise &|g is interpreted as a > filename. > > reinplace "s|psppire|psppire &|g" ... And please note that & does not do here what it usually does with sed. It will not be replaced with the matched pattern. But this just as a side-note. Rainer