Description
Goal is to reimplement several core Unix utilities. giving exposure to TypeScript basics, including file I/O, flag parsing, string manipulation, and more.
Requirements
Create Go programs that replicate the functionality of the following Unix utilities:
[x] head
[x] tail
[x] wc (word count)
[x] cat
[x] echo
[x] tree
[x] yes
[x] true
[x] false
[x] env
Each utility should be implemented as a separate TypeScript program.
Programs should read input from files or stdin as appropriate.
Implement basic flags for each utility where applicable.
Example Implementations
head
Print the first 10 lines of input by default.
Add a -n flag to specify the number of lines to print.
tail
Print the last 10 lines of input by default.
Add a -n flag to specify the number of lines to print.
wc (word count)
Count lines, words, and characters in the input.
Add -l, -w, and -c flags to display only lines, words, or characters respectively.
4. cat
Concatenate and print files.
Add a -n flag to number output lines.
5. echo
Print arguments to standard output.
Add a -n flag to omit the trailing newline.
Acceptance Criteria
Each utility is implemented as a separate TypeScript program.
Includes basic error handling.
Includes a README with build and usage instructions for all utilities.
CoreUtils in TypeScript
Description Goal is to reimplement several core Unix utilities. giving exposure to TypeScript 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 TypeScript program.
Programs should read input from files or stdin as appropriate.
Implement basic flags for each utility where applicable.
Example Implementations
Print the first 10 lines of input by default.
Add a -n flag to specify the number of lines to print.
Print the last 10 lines of input by default.
Add a -n flag to specify the number of lines to print.
4. cat
5. echo
Acceptance Criteria