set the tmp file for sed??

jd1008 jd1008 at gmail.com
Sat Sep 26 21:30:05 UTC 2015



On 09/26/2015 02:39 PM, bruce wrote:
> Hey.
>
> I know. This is probably really basic/subtle, but 'net searches are
> coming up empty.
>
> Doing testing of 'sed' it's generating tmp files in the base
> directory. Is there a way that the 'sed' tmp dir can be set to '/tmp'.
>
> A sample sed cmd would be
>
> sed -i '/foo/cat/g' abc.dat
> sed -i '/foo/d' abc.dat
>
> thanks..
One minor error

sed -i 's/foo/cat/g' abs.dat
ditto for abs.dat

Man page says:

        s/regexp/replacement/



More information about the users mailing list