Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.59 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.59 KB
nodejs linux-terminal

Wcat

It is used to display or make a copy content of one or more files in the terminal

Instructions to Configure

  1. Open command prompt and choose your desired directory to clone the repository
  2. git clone https://github.com/abhinab-choudhury/wcat-command.git
  3. cd wcat-command
  4. npm link

Commands

  1. wcat filepath => displays content of the file in the terminal ✔
  2. wcat filepath1 filepath2 filepath3... => displays content of all files in the terminal(contactinated form) in the given order. ✔
  3. wcat -s filepath => convert big line breaks into a singular line break ✔
  4. wcat -n filepath => give numbering to all the lines ✔
  5. wcat -b filepath => give numbering to non-empty lines ✔
  6. wcat filepath > filename2path => put all the content of filename into filename2 by overriding and also creates filename2 if it doesn't exist. ✔
  7. wcat filename2path >> filename2path => append all the content of filename into filename2
  8. node wcat -s filename > filename2 => get the file content of filename remove large spaces and save the output in filename2 ✔ We can mix and match the options.

Edge cases

  1. If file entered is not found then it gives file does not exist error.
  2. -n and -b are 2 options available together then command should give you an error