text-processor: The Find-and-Replace Tool That Handles 1000 Files at Once
Remember when you had to update a copyright year across your entire website? Or replace a deprecated API call in 500 source files? text-processor handles it in seconds.
Install
npm install -g text-processor-pro
Bulk Find and Replace
# Update copyright year across all HTML files
text-processor replace "*.html" "Copyright 2025" "Copyright 2026"
Extract Lines Matching a Pattern
# Extract all error messages from logs
text-processor extract "*.log" "ERROR" -o all_errors.txt
Count Words and Lines
text-processor count "*.md" --words --lines
Format Text
text-processor format input.txt --uppercase -o output.txt
Real-World Example: Log Analysis
# Step 1: Extract all 500 errors
text-processor extract "/var/log/*.log" "HTTP/1.1 500" -o errors_500.txt
# Step 2: Count unique error patterns
text-processor count errors_500.txt --lines
# Step 3: Replace sensitive data in logs
text-processor replace "/var/log/*.log" "password=[^&]+" "password=[REDACTED]"
Install
npm install -g text-processor-pro
Source Code
Check out the source on GitHub: text-processor-pro
🎪 Visit us: https://www.tucaowall.vip/
⭐ Get free DigitalOcean credit: https://m.do.co/c/fc5cb7b29a0d
🔧 CLI Toolkit Pro - Unified CLI for devs: Buy $9.99
What text processing tasks do you face? Share in the comments!
Top comments (0)