An open API service indexing awesome lists of open source software.

https://github.com/rishikeshdubey13/wc-terminal

This is a wc tool.
https://github.com/rishikeshdubey13/wc-terminal

parser python3 unix

Last synced: 9 months ago
JSON representation

This is a wc tool.

Awesome Lists containing this project

README

          

ccwc - A Python Implementation of the Unix wc Command
A simple, lightweight Python implementation of the Unix wc (word count) command-line tool.
Features

📊 Count lines, words, characters, and bytes in files or stdin
🔧 Command-line interface matching standard wc behavior
📁 Support for file input or stdin piping
🛡️ Robust error handling for missing files
🌍 Unicode support with UTF-8 encoding
⚡ Fast binary file processing

Installation
Clone this repository:
bashgit clone https://github.com/rishikeshdubey13/WC-terminal.git
cd Wc-terminal
No additional dependencies required - uses only Python standard library.

Learning Project
This project was created as a learning exercise to understand:

Command-line argument parsing with argparse
Binary vs text file handling in Python
Unicode encoding/decoding
Unix tool behavior and compatibility
Error handling and user experience

Contributing
Feel free to submit issues or pull requests if you find bugs or have suggestions for improvements.
License
MIT License - see LICENSE file for details.
Acknowledgments
Inspired by the Unix wc command and the Coding Challenges project series.