It is used to display or make a copy content of one or more files in the terminal.
lcat "filepath"β displays content of the file in the terminallcat "filepath1" "filepath2" "filepath3" ...β displays content of all files in the terminal(contactinated form) in the given orderlcat -s "filepath"β convert bigger line breaks into a singular line breaklcat -n "filepath"β give numbering to all the lineslcat -b "filepath"β give numbering to non-empty lineslcat "filePath" > filename2Pathβ put all the content of filename into filename2Path by overriding and also creates filename2 if it doesn't existlcat "filePath" >> filename2Pathβ append all the content of filename into filename2Path and also creates filename2 if it doesn't existlcat -s "filename" > filename2β get the file content of filename remove large spaces and save the output in filename2
lcat -s -n "filepath" "filepath2" ...β convert bigger line breaks into a singular line break and give numbering to all the lineslcat -s -b "filepath" "filepath2" ...β convert bigger line breaks into a singular line break and give numbering to non-empty lines
- Clone this repository.
- Make sure you have latest version of
Node.js LTSinstalled in your system. - Open the CMD/Terminal in the folder and run the command
npm link - It will make
lcatas a global command on your system. (lcat is small 'L' cat) - That's it.