trim-text-space

Delete empty leading lines, empty trailing lines, and spaces at the end of any line.

https://github.com/sixarm/trim-text-space

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 (5.7%) to scientific vocabulary
Last synced: 8 months ago · JSON representation ·

Repository

Delete empty leading lines, empty trailing lines, and spaces at the end of any line.

Basic Info
  • Host: GitHub
  • Owner: SixArm
  • License: other
  • Language: Awk
  • Default Branch: main
  • Homepage:
  • Size: 9.77 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme Contributing License Code of conduct Citation Codeowners

README.md

trim-text-space

trim-text-space is a simple script to delete extraneous spaces:

  • Delete empty leading lines

  • Delete empty trailing lines

  • Delete spaces at the end of any line

Syntax:

```sh trim-text-space ...

stdin | trim-text-space ```

Examples:

``` trim-text-space file.txt

cat file.txt | trim-text-space ```

Purpose

This kind of trim is helpful for many kinds of text files, such as source code text files in many popular programming languages, documentation content text files in many popular markup languages, and more.

Notes

Markdown caution: If your text uses markdown syntax, be aware that some markdown variations use a double-space at the end of a line to indicate a line break. If you need the double-space at the end of a line, then don't use this tool

Thanks

Thanks to dicussion here

Thanks for the awk answer Glenn Jackman

Tracking

  • Command: trim-text-spaces
  • Version: 1.0.0
  • Created: 2023-11-09T20:57:02Z
  • Updated: 2023-11-09T22:01:25Z
  • License: GPL-2.0 or GPL-3.0 or contact for custom
  • Contact: Joel Parker Henderson (joel@joelparkerhenderson.com)

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: trim-text-space
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/trim-text-space/'
    description: trim-text-space
repository-code: 'https://github.com/SixArm/trim-text-space/'
abstract: >-
  trim-text-space
license: See license file

GitHub Events

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

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 11
  • Total Committers: 1
  • Avg Commits per committer: 11.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 11
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 8 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