jeancsil / go-scripts

Golang scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-scripts

CLI scripts to learn Golang

Currently supported commands

commands/head.go

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

About

Golang scripts


Languages

Language:Go 71.6%Language:Makefile 28.4%