Zum Inhalt springen
Developer Snippets

Developer Snippets

My little Snippet library.

Neueste Beiträge

  • Delete *.log files older then 30 days
  • Find Files by Age and copy them to another directory
  • Search with grep and zip file results
  • Search for a string in files and save the result
  • Zip files and exclude subdirectories

Kategorien

  • .git
  • #!/bin/bash
  • Allgemein
  • Docker
  • HTML5
  • Linux
  • Odoo
  • PHP
  • Terminal / Shell / Cli
  • Windows

Zip files and exclude subdirectories

zip -r zipfile.zip directoryToZip -x  directoryToZip /subdirectoryToExclude/*  directoryToZip/SecondSubdirectoryToExclude /*
Veröffentlicht am 31. Oktober 201931. Oktober 2019Autor Alexander StroschkeKategorien #!/bin/bash, LinuxSchlagwörter Bash, Linux, zip

Beitrags-Navigation

Zurück Vorheriger Beitrag: Encrypt Bitlocker Drive in Linux
Weiter Nächster Beitrag: Search for a string in files and save the result
Stolz präsentiert von WordPress