Using FreeBSD as an example, see references to "tmpfname" in main.c:
https://raw.githubusercontent.com/freebsd/freebsd/master/usr...
The naming scheme differs between seds. GNU prefixes the name with "sed" while BSD encloses it between two "!"'s.
To see the name of the temporary file on BSD, something like
ktrace sed -i 's/foo/bar/' file kdump ktrace.out|sed -n '/NAMI/p'
Using FreeBSD as an example, see references to "tmpfname" in main.c:
https://raw.githubusercontent.com/freebsd/freebsd/master/usr...
The naming scheme differs between seds. GNU prefixes the name with "sed" while BSD encloses it between two "!"'s.
To see the name of the temporary file on BSD, something like