Skip to main content

Python implementation of the UNIX wc (Word Count) utility

Project description

PYWC

Python implementation of the UNIX wc (Word Count) utility

https://pypi.org/project/ed-pywc/


Installation and Usage

Installation

pip install ed-pywc

Usage

Usage: pywc [OPTIONS] [FILE]

  A Python-based version of the UNIX wc command which counts lines, words, and
  bytes in a file.

  Examples:
      pywc --lines sample.txt      # Counts lines in sample.txt
      pywc --words sample.txt      # Counts words in sample.txt
      pywc --bytes sample.txt      # Counts bytes in sample.txt
      pywc sample.txt              # Counts lines, words, and bytes in sample.txt
      cat sample.txt | pywc        # Pipe the output of another command as input

Options:
  -l, --lines  Count the number of lines in the specified file.
  -w, --words  Count the number of words in the specified file.
  -c, --bytes  Count the number of bytes in the specified file.
  --help       Show this message and exit.

Development Setup

Development Setup


Publish

Publishing to Pypi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ed-pywc-1.0.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

ed_pywc-1.0.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page