-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add count Command to User Space #59
Comments
A lot of these features are already supported by the built in |
Thanks for the suggestion! I've taken your advice and enhanced the wc command: Objective: Enhance the wc command by adding a feature to count punctuation, digits, and uppercase/lowercase letters in a file. Features: Approach: |
Objective: Implement the count command to provide basic file content statistics.
Description:
count Command: The count command counts the number of lines, words, and characters in a specified file.
Features:
Content Statistics: Count lines, words, and characters in a file.
Options:
-l: Count lines.
-w: Count words.
-c: Count characters.
-h: Display help information on usage.
Approach: Update user space to introduce the count command. Implement functionality to read file content and calculate the number of lines, words, and characters based on command-line options. The count command will parse arguments to determine which statistics to output. If the -h argument is used, count will output simple help information and exit.
Files to be modified/added:
user:
count.c (new file for implementing the count command)
Future Development:
Enhance the command to support counting specific patterns or strings within the file.
The text was updated successfully, but these errors were encountered: