CLI scripts to learn Golang
Similar to linux head
command.
Usage:
- head -f /home/yourfile.txt # Reads 10 first lines
- cat /home/yourfile.txt | head # Reads 10 first lines
- head -f /home/yourfile.txt -n 20 # Reads 20 first lines
- cat /home/yourfile.txt | head -n 20 # Reads 20 first lines