Open eyad-hussein opened 1 week ago
I was able to implement more than 6 commands, however most of them expect one file/argument other than the flags(if present), i will be working on fixing that tomorrow. In addition I will implement the remaining commands as well.
Pull request was made https://github.com/codescalersinternships/Coreutils-EYAD_HUSSEIN/pull/1
Waiting for the review
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
[x] Create Go programs that replicate the functionality of the following Unix utilities:
[x] Each utility should be implemented as a separate Go 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