It is used to display or make a copy content of one or more files in the terminal
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.
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