1

zip has -@ which takes file names from stdin. I just want to add one file with the content taken from stdin. The filename stored in the zip file should be specified in the command line. I don't think that this is possible with the zip command line. Could anybody confirm if this is the case? Thanks.

user1424739
  • 11,937
  • 17
  • 63
  • 152
  • 1
    See https://stackoverflow.com/a/54702078/2030808 – pmqs Aug 29 '19 at 20:29
  • No. This does not do the thing that I need. Did you try it? – user1424739 Aug 29 '19 at 21:22
  • Of course I did! It needs two steps to achieve what you want, but it is as good as you will get if your requirement is to use the infozip implementation of the zip command. – pmqs Aug 30 '19 at 08:05
  • I need to get it done in one step. I don’t want to create any temp files. – user1424739 Aug 30 '19 at 13:22
  • If you requirement is to use the zip command, you are out of luck. if you can use something else to create the zip file then there is at least one option that will create the zip file in one step. – pmqs Aug 30 '19 at 14:35

0 Answers0