I do this command:
$ locate config.yml | while read i; do sed -i '/(swipe)|(pinch)/s/[0-9].*/1/' $i; done
output:
sed: couldn't open temporary file /home/user/.config/fusuma/sedHhlVCW: Permission denied
sed: couldn't open temporary file /home/var/lib/gems/2.5.0/gems/fusuma-0.11.1/lib/fusuma/sed41YvwW: Permission denied
sed: couldn't open temporary file /var/lib/gems/2.5.0/gems/fusuma-1.10.0/lib/fusuma/sedFSNXeV: Permission denied
So I did with sudo (run as sudo sudo su -> #, but then not all files were change, and as I see from the error above, the files are temporary and with changed name (postfix of all them consist of command and random chars), does this pipe? If so why? How can I persist filenames over pipe?
$ uname -a
Linux user 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux
$ type sed
sed is aliased to `sed -E'