Skip to content

yildirimmurat/cc1-unix_wc_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Create executable jar file

javac UnixWC.java
jar cfe UnixWC.jar UnixWC UnixWC.class

Create a ccwc binary file in a 'path' location

cd /path/to/binary/directory
sudo touch ccwc
sudo chmod +x ccwc
sudo vi ccwc

Add shebang line at the beginning of ccwc script

#!/bin/bash
java -jar /path/to/UnixWC.jar "$@"

Example Usage:

ccwc test.txt
ccwc test.txt -l
cat test.txt | ccwc
curl https://www.gutenberg.org/cache/epub/71831/pg71831.txt | ccwc -l

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages