Sample Header Ad - 728x90

Add files from "bash find" to 7z archive

1 vote
1 answer
356 views
I did quite a bit of searching before asking this! (Even so I'm expecting to have a duplicate pointed out). So I collect a bunch of files, e.g.: find . -name "2020-*" ... is there some way to "pipe" all these files into a .7z archive? (NB I realise "pipe" may not be the right word as the operation I want is in fact a file-copy operation). I've tried things like: find . -name "2020-*" | 7z a -p pumple.7z ... this gives me ">" on the next line, as though it's expecting some console input. So does the following: find . -name "2020-* > 7z a -p pumple.7z
Asked by mike rodent (1172 rep)
Feb 1, 2024, 10:50 AM
Last activity: Feb 1, 2024, 10:57 AM