This seems like the kind of question that could be found in the man for ditto, but I've read that and googled this question with no answer.
I simply want to archive a few files using ditto, like this:
ditto -ckv file1 file2 file3 newfile.zip
It seems that ditto allows for multiple source files. But I get an error.
Does anyone if there's a way to make this work or can you confirm that ditto won't allow this?
Updated Answer
You can do that with built-in
zipcommand:or, more simply:
Original Answer
You can do that with
7zip.Here I write (add) 3 files to an archive:
Now, I check what's in it:
I could equally check the contents with
unzip:I installed
7zipwith homebrew using: