Mxk01 / ccwc-linux-command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ccwc - linux cli command

image

Installation

  1. Use git to clone this project : git clone https://github.com/Mxk01/ccwc-linux-command.git

  2. Copy your JavaScript file to /usr/local/bin on Linux. cp ./ccwc.js

  3. Navigate to the /usr/local/bin directory:

    cd /usr/local/bin
    

3.Create a symbolic link named ccwc:

    sudo ln -s ./ccwc.js ccwc

Make the script executable.This grants execute permissions to the script.: sudo chmod +x /usr/local/bin/ccwc

If you encounter errors about missing packages, update your PATH:

export PATH=$PATH:/usr/local/bin

Usage

Run your script using the created symbolic link:

ccwc test.txt -c -w 

Deleting the Symbolic Link

To remove the symbolic link, run:

sudo rm /usr/local/bin/ccwc

About


Languages

Language:JavaScript 100.0%