Skip to content

jeancsil/go-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published