Skip to content

Developer Snippets

My little Snippet library.

Recent Posts

  • Windows 10: Telemetrie, Online-Suche und Microsoft-Empfehlungen reduzieren
  • 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

Categories

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

Tag: Files

Delete *.log files older then 30 days

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

Posted on 18. December 202018. December 2020Categories Linux, Terminal / Shell / CliTags Delete, Files, Linux
Proudly powered by WordPress