In this task, you’ll enhance the wordcount
command by ensuring a consistent formatting of the output across multiple lines, which you previously ignored. It’ll involve aligning the numbers in columns when processing multiple files or directories. This feature will make the output slightly more readable.
Acceptance Criteria
- The program should format the output to align numbers in columns when dealing with multiple files or directories.
- The number of digits in each column should be consistent across all lines of output.
- The program should correctly handle directories and files that don’t exist by displaying a meaningful message.
- If multiple files are processed, then the program should display a total summary line at the end.
Examples
Processing two or more files with various counts: