With borg version 1.2.0b3, It is possible to chain multiple pipes using --paths-from-stdin i.e:
apt-file list bash | sed -Ee 's/^.*: //g' | borg create --show-version --info --progress --stats --list --compression=lz4 --paths-delimiter="\n" --paths-from-stdin ::BashPkg-{now}
A better form would be using --paths-from-command
borg create --show-version --info --progress --stats --list --compression=lz4 --paths-delimiter="\n" --paths-from-command ::BashPkg-{now} -- "apt-file list bash | sed -Ee 's/^.*: //g'"
However, it won't work. I got error:
command "apt-file list bash | sed -Ee 's/^.*: //g'" not found
If I removed the double quote at "apt-file..., then it was borg create command pipe with sed command, not apt-file with sed.