Skip to content

BagMel87/textcleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Cleaner - Free Version

A simple and efficient command-line tool for cleaning and normalizing text files.

License Go Version

✨ Features (Free Version)

  • Remove Extra Spaces - Normalize multiple spaces into single spaces
  • Remove Empty Lines - Strip out blank lines from your text
  • Normalize UTF-8 - Ensure all text is valid UTF-8 encoding
  • Strip Punctuation - Optional removal of all punctuation characters

🚀 Quick Start

Installation

# Clone the repository
git clone https://github.com/yourusername/textcleaner.git
cd textcleaner

# Build
go build -o textcleaner main.go

Basic Usage

# Remove extra spaces and normalize UTF-8
textcleaner --input messy.txt --output clean.txt

# Remove empty lines
textcleaner --input input.txt --output output.txt --no-empty

# Strip punctuation
textcleaner --input input.txt --output output.txt --strip-punct

# Combine options
textcleaner --input messy.txt --output clean.txt --strip-punct --no-empty

📋 Command-Line Options

Required Flags

  • --input - Input file path
  • --output - Output file path

Optional Flags

  • --strip-punct - Remove all punctuation
  • --no-empty - Remove empty lines

💎 Want More Features?

Upgrade to Text Cleaner Pro for advanced features:

Pro Features Include:

🔥 Advanced Cleaning

  • Case conversion (lowercase, uppercase, title case)
  • Remove duplicate lines
  • Line length limiting
  • Custom character removal

📦 Batch Processing

  • Process multiple files at once
  • Recursive directory scanning
  • Progress bars for large operations

📊 Statistics & Reporting

  • Detailed cleaning statistics
  • JSON output format
  • Before/after comparison

Performance

  • Optimized for large files
  • Streaming support
  • Fast batch operations

Get Pro Version

👉 Get Text Cleaner Pro on Gumroad 👈

One-time purchase • Lifetime updates • Priority support

📖 Examples

Example 1: Basic Cleaning

Input:

Hello    world!   This  is    a    test.
Multiple     spaces      everywhere.

Output:

Hello world! This is a test.
Multiple spaces everywhere.

Example 2: Remove Empty Lines

Input:

First line

Second line


Third line

Output:

First line
Second line
Third line

🛠️ Building from Source

For Windows

GOOS=windows GOARCH=amd64 go build -o textcleaner.exe main.go

For Linux

GOOS=linux GOARCH=amd64 go build -o textcleaner main.go

For macOS

GOOS=darwin GOARCH=amd64 go build -o textcleaner main.go

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🌟 Support

If you find this tool helpful, please consider:

  • ⭐ Starring the repository
  • 🐛 Reporting bugs
  • 💡 Suggesting new features
  • 💎 Upgrading to Pro

📞 Contact


Free Version | Get Pro Version →

About

A simple and efficient command-line tool for cleaning and normalizing text files

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages