rm-rotated-files

Remove rotated log files: files that are compressed, or numbered, or datestamped, e.g. syslog.1, history.gz, etc.

https://github.com/sixarm/rm-rotated-files

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.5%) to scientific vocabulary
Last synced: 8 months ago · JSON representation ·

Repository

Remove rotated log files: files that are compressed, or numbered, or datestamped, e.g. syslog.1, history.gz, etc.

Basic Info
Statistics
  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 8 years ago · Last pushed about 1 year ago
Metadata Files
Readme Code of conduct Citation Codeowners

README.md

Remove rotated files

This script deletes log files that are created by various kinds of log file rotations.

Contents:

Introduction

Syntax:

$ rm-rotated-files <dir>

Example:

$ rm-rotated-files /var/log

Which files?

Compressed files:

  • Files with extensions that are known to be compressed or archived.

  • Examples: .bz2, .bzip, .gz, .tar, .tgz, .zip, .7zip

Old files:

  • Files with extensions that are typically for old files.

  • Examples: .old, .bak, .tmp

Numbered files:

  • Files with names that end in a separator then number:

  • Examples: foo.1, foo-2, foo_3, etc.

Datestamped files:

  • Files with names that end in a separator then ISO date.

  • Examples: foo-2017-12-31, foo201712_31, etc.

Related

These scripts are for related purposes:

Compatibility notes

We prefer to be more compatible rather than system-specific.

  • To delete files, we prefer -exec rm vs. -delete. The former is more compatible, the latter is faster.

  • To regex match, we prefer patterns to be basic vs. extended. The former is more compatible, the latter is more modern.

  • We prefer POSIX code vs. shell-specific code.

  • We prefer the code to be more DAMP than DRY. For example, the code has separate name matching for .bz and .bz2, even though we could combine these.

Tracking

  • Command: rm-rotated-files
  • Website: http://sixarm.com/rm-rotated-files
  • Cloning: https://github.com/sixarm/rm-rotated-files
  • Version: 4.0.0
  • Created: 2013-12-09
  • Updated: 2019-01-21
  • License: GPL
  • Contact: Joel Parker Henderson (joel@joelparkerhenderson.com)
  • Tracker: 0f5f883770a0a2e85c7ec9a0c8296402

Owner

  • Name: SixArm
  • Login: SixArm
  • Kind: organization
  • Email: sixarm@sixarm.com
  • Location: San Francisco

SixArm Software

Citation (CITATION.cff)

cff-version: 1.2.0
title: Remove rotated files
message: >-
  If you use this work and you want to cite it,
  then you can use the metadata from this file.
type: software
authors:
  - given-names: Joel Parker
    family-names: Henderson
    email: joel@joelparkerhenderson.com
    affiliation: joelparkerhenderson.com
    orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
  - type: url
    value: 'https://github.com/SixArm/rm-rotated-files/'
    description: Remove rotated files
repository-code: 'https://github.com/SixArm/rm-rotated-files/'
abstract: >-
  Remove rotated files
license: See license file

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 15
  • Total Committers: 1
  • Avg Commits per committer: 15.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Joel Parker Henderson j****l@j****m 15
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels