Skip to content

jwc a simple cmd base application written in Java that provides functionality similar to the 'wc' command in Linux. It enables users to count words, lines, characters, and bytes in text files.

License

Notifications You must be signed in to change notification settings

manishdait/java-wordcount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwc - Java Word Count

jwc is a command-line tool written in Java that provides functionality similar to the 'wc' command in Linux. It enables users to count words, lines, characters, and bytes in text files.

Features

  • Counts the number of words, lines, characters and bytes in a given text file.
  • Supports processing multiple files at once.
  • Provides options for specifying the output format and additional statistics.
  • Easy to install and use.

Usage

jwc [options] [file1] [file2] ...

Options

  • -c, --bytes:Print the byte counts
  • -m, --chars: Print the character counts.
  • -l, --lines: Print the line counts.
  • -w, --words: Print the word counts.
  • --help: Display help message and usage instructions.
  • --version: Output version information.

Installation

To use jwc, you need to have Java installed on your system. You can download and install Java from Oracle's website or use a package manager like Homebrew (for macOS) or APT (for Ubuntu Linux).

Once Java is installed, you can download the jwc binary from the releases page.

Debian Package (.deb)

To install jwc using the Debian package, download the .deb file from the releases page and run the following command:

sudo dpkg -i jwc-1.0.deb
jwc [options] [file1] [file2] ...

JAR File

If you prefer to use the JAR file directly, download the jwc-v.1.0.jar file from the releases page and run the following command:

java -jar jwc-v.1.0.jar [options] [file1] [file2] ...

Replace [options] [file1] [file2] ... with the appropriate command-line arguments and filenames.

About

jwc a simple cmd base application written in Java that provides functionality similar to the 'wc' command in Linux. It enables users to count words, lines, characters, and bytes in text files.

Topics

Resources

License

Stars

Watchers

Forks

Languages