README ¶ 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から取得. Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.