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

Schlagwort: Files

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 2020Kategorien Linux, Terminal / Shell / CliSchlagwörter Delete, Files, Linux
Stolz präsentiert von WordPress