Open eyad-hussein opened 3 days ago
Goal is to reimplement several core Unix utilities, giving exposure to Python basics, including file I/O, flag parsing, string manipulation, and more.
[x] Create Python programs that replicate the functionality of the following Unix utilities:
[x] Each utility should be implemented as a separate python program.
[x] Programs should read input from files or stdin as appropriate.
[x] Implement basic flags for each utility where applicable.
-n
-l
-w
-c
CoreUtils in Python
Description
Goal is to reimplement several core Unix utilities, giving exposure to Python basics, including file I/O, flag parsing, string manipulation, and more.
Requirements
[x] Create Python programs that replicate the functionality of the following Unix utilities:
[x] Each utility should be implemented as a separate python program.
[x] Programs should read input from files or stdin as appropriate.
[x] Implement basic flags for each utility where applicable.
Example Implementations
1. head
-n
flag to specify the number of lines to print.2. tail
-n
flag to specify the number of lines to print.3. wc (word count)
-l
,-w
, and-c
flags to display only lines, words, or characters respectively.4. cat
-n
flag to number output lines.5. echo
-n
flag to omit the trailing newline.Acceptance Criteria