My implementation of the Unix utility head, that prints the contents of a file.
Support for:
- standard input to print
- n arguments to display an limited number of lines
- c arguments to display an limited number of bytes
- multiple files to print
Print the standard input:
cargo r --release
Print the multiple files:
cargo r --release -- text.txt text2.text
Print the N first lines of a file:
cargo r --release -- text.txt -n <N>
Print the N first bytes of a file:
cargo r --release -- text.txt -c <N>