thead

command module
v0.0.0-...-cbf766d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 8 Imported by: 0

README

build Coverage Status codebeat badge Go Report Card GitHub license Dockerfile DOI

thead

headコマンドの機能拡張

Description

既存のheadコマンドは複数のファイル指定し,各ファイルごとの先頭10行分の内容を出力することが可能である. しかし,特定のディレクトリ直下のファイル全てを指定する際には,正規表現を工夫する必要があり面倒である. そこでtheadではheadコマンドの機能の一部に加え,ディレクトリを指定するだけでその直下のファイルをtheadコマンドの対象とする機能を追加する. ディレクトリ内のディレクトリにも再帰的に処理が行われる.

Usage

 thead [OPTIONS...] <FILEs...|DIRs...>  
 OPTIONS:  
    -l, --lines <LINES>             指定された行数を各ファイルごとに出力する.
    -q, --quiet                     複数ファイルを出力する際の各ファイル名を表示しない.
    -h, --help                      このメッセージを出力する.  
    
 ARGUMENTS   
    FILEs...                 カウント対象を指定する.
    DIRs...                  指定したディレクトリ内のファイルを入力ファイルとする.

Install

🍺Homebrew

$ brew tap akanatr/thead
$ brew install thead

💪Compiling Yourself

$ git clone https://github.com/akanatr/thead.git
$ cd thead
$ make 

icon

アイコンの画像は freesvg.orgから取得.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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