Open xmonader opened 3 months ago
Goal is to reimplement several core Unix utilities. giving exposure to Go basics, including file I/O, flag parsing, string manipulation, and more.
Create Go programs that replicate the functionality of the following Unix utilities:
Each utility should be implemented as a separate Go program.
Programs should read input from files or stdin as appropriate.
Implement basic flags for each utility where applicable.
-n
-l
-w
-c
man COMMAND
CoreUtils in Go
Description
Goal is to reimplement several core Unix utilities. giving exposure to Go basics, including file I/O, flag parsing, string manipulation, and more.
Requirements
Create Go programs that replicate the functionality of the following Unix utilities:
Each utility should be implemented as a separate Go program.
Programs should read input from files or stdin as appropriate.
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
Resources
man COMMAND
)