Sunday, September 19, 2021

Linux :Zip How to Zip only Files in Zip File in Linux

https://superuser.com/questions/841642/zip-command-on-linux-how-to-force-to-zip-only-files-and-not-whole-directories-st


Use the -j (junk-paths) option.


@LAPTOP MINGW64 ~/Desktop/Devops/EmailCount

$ zip -j 12-18Sept2021.zip "12-18Sept 2021/*"

  adding: 12-9-2021.csv (164 bytes security) (deflated 45%)

  adding: 13-9-2021.csv (164 bytes security) (deflated 45%)

  adding: 14-9-2021.csv (164 bytes security) (deflated 68%)

  adding: 15-9-2021.csv (164 bytes security) (deflated 67%)

  adding: 16-9-2021.csv (164 bytes security) (deflated 66%)

  adding: 17-9-2021.csv (164 bytes security) (deflated 69%)

  adding: 18-9-2021.csv (164 bytes security) (deflated 66%)

  adding: 19-9-2021.csv (164 bytes security) (deflated 45%)

  adding: 20-9-2021.csv (164 bytes security) (deflated 45%)


No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass