Zum Inhalt springen

Developer Snippets

My little Snippet library.

Neueste Beiträge

  • JS: Mask all except the last four digits
  • Docker, check all log files
  • Delete *.log files older then 30 days
  • Find Files by Age and copy them to another directory
  • Search with grep and zip file results

Kategorien

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

Delete *.log files older then 30 days

find /var/www/data/logs -name "*.log" -type f -mtime +30 -exec rm -f {} \;

Veröffentlicht am 18. Dezember 202018. Dezember 2020Autor Alexander StroschkeKategorien Linux, Terminal / Shell / CliSchlagwörter Delete, Files, Linux

Beitrags-Navigation

Zurück Vorheriger Beitrag: Find Files by Age and copy them to another directory
Weiter Nächster Beitrag: Docker, check all log files
Stolz präsentiert von WordPress