Skip to content

CLI tool made using the UNIX philosophy to output the exact number of words, characters, lines or bytes in a file

Notifications You must be signed in to change notification settings

MugheesQasim/CLI-tool-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI-tool-java

Command

ccwc [-l/-w/-m/-c] Path-to-file

-l to get the number of lines in a file
-w to get the number of words in a file
-m to get the number of characters in a file
-c to get the number of bytes in a file

What does this tool do?

  • Gives a file's exact number of words, characters, bytes, and lines.
  • Can handle different character encodings
  • Can handle different file types

How to use this tool? (Windows)

1-) Clone this repo

2-) Create a new text file anywhere on your device and write the following script (Replace your project path with "PathToProject") and save it as ccwc.bat file

@echo off
java -cp "PathToProject/target/classes" Main

3-) Add the path of this ccwc.bat file in the Path in user variables

You are all set and can now use ccwc command.

About

CLI tool made using the UNIX philosophy to output the exact number of words, characters, lines or bytes in a file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages