We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f2a54 commit 9f5649fCopy full SHA for 9f5649f
1 file changed
implement-shell-tools/wc/wc.py
@@ -30,13 +30,13 @@ def process_file(file_path):
30
stats = counter(content)
31
32
if args.line:
33
- print(f"{stats['lines']} {path}")
+ print(f"{stats['lines']} {file_path}}")
34
elif args.word:
35
- print(f"{stats['words']} {path}")
+ print(f"{stats['words']} {file_path}}")
36
elif args.char:
37
- print(f"{stats['characters']} {path}")
+ print(f"{stats['characters']} {file_path}}")
38
else:
39
- print(f"{stats['lines']} {stats['words']} {stats['characters']} {path}")
+ print(f"{stats['lines']} {stats['words']} {stats['characters']} {file_path}}")
40
41
42
total_lines = 0
0 commit comments