OwnWc
Phase 1 - Basic counting
Implement a Python script that mimics minimal wc behavior using sys.argv for inputs.
- Read file paths only from command-line arguments
- Count lines, words, and characters per file
- Display counts in a simple formatted output
Functional result: Script prints correct line/word/character counts for each provided file.
Phase 2 - Extended flags and aggregated output
Add optional flags to refine output and support totals.
- Implement flags:
-l(lines),-w(words),-c(chars) - Show only counts requested by flags
- Add total aggregation when multiple files are given
Functional result: Script outputs filtered counts and a correct totals line when multiple files are processed.