GNU tar supports --transform=expression
. In your case it would be --transform s,/,-,
(except there would be no leading -
which I suspect would be OK).
↧
Answer by Mark Wagner for Compressing multiple files in different folders without folder structure
↧