rm-rotated-files
Remove rotated log files: files that are compressed, or numbered, or datestamped, e.g. syslog.1, history.gz, etc.
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
Repository
Remove rotated log files: files that are compressed, or numbered, or datestamped, e.g. syslog.1, history.gz, etc.
Basic Info
- Host: GitHub
- Owner: SixArm
- Language: Shell
- Default Branch: main
- Homepage: http://sixarm.com/rm-rotated-files
- Size: 8.79 KB
Statistics
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
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 rmvs.-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
.bzand.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
- Website: http://sixarm.com
- Twitter: sixarm
- Repositories: 580
- Profile: https://github.com/SixArm
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
Top Committers
| Name | 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