Skip to content

KhafiaAyyub/WcatCommand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WcatCommand

It is used to display or make a copy content of one or more files in the terminal as well as we copy the files content in another files .

  • General Syntax:

->node wcat.js [options] [filepaths]

->option to remove big line break (-s)

->option to add line number to non empty lines (-b)

->option to add line numbers to all lines (-n)

  • Commands:

1- node wcat.js filepath => displays content of the file in the terminal

2- node wcat.js filepath1 filepath2 filepath3 => displays content of all files in the terminal in (contactinated form) in the given order.

3- node wcat.js -s filepath => convert big line breaks into a singular line break

4- node wcat.js -n filepath => give numbering to all the lines

5- node wcat -b filepath => give numbering to non-empty lines

6-We can mix and match the options.

7-Create a new file which content the data of other files.

8-Make it global with name spaceNstring to use it in terminal and cmd.

  • Edge cases covered:

1- If file entered is not found then it gives file does not exist error.

2- -n and -b are 2 options which are mutually exclusive so if user types both of them together only the first enter option should work.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published