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.
- Host: GitHub
- URL: https://github.com/rishikeshdubey13/wc-terminal
- Owner: rishikeshdubey13
- Created: 2025-09-17T22:54:43.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-20T12:22:41.000Z (9 months ago)
- Last Synced: 2025-09-20T13:13:10.296Z (9 months ago)
- Topics: parser, python3, unix
- Language: Python
- Homepage:
- Size: 124 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.