head

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: MIT-0 Imports: 5 Imported by: 0

Documentation

Overview

display the first few lines of files.

SYNOPSIS

head [-n NUMBER] [FILE ...]

DESCRIPTION

head copies the first NUMBER of lines of each specified FILE to stdout. If no files are named, head copies lines from stdin. If NUMBER is omitted, it defaults to 10.

The options are as follows:

-n        Copy the first NUMBER of lines of each file

SEE ALSO

Not available.

REFERENCES

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/head.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Number int
}

func (*Options) Head

func (opt *Options) Head(operands []string) error

type Opts

type Opts func(*Options)

func Number

func Number(num int) Opts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL