PR
キーワードサーチ
カレンダー
コメント新着
フリーページ
Cygwinでbannerを使ってみる。
標準ではインストールされないようなので、カテゴリー「Utils」の「cygutils」を追加でインストールする。


「banner ABC」と入力します。
「banner -c 7 ABC」と入力します。
「-c 7」は文字「7」で表示することを意味します。

「-w 128」は幅128文字を意味します。
スペースを含む文字列はダブルコーテションで囲めば改行されません。
「putclip」がクリップボードに出力するコマンドで、これも「cygutils」に含まれます。
「|」はパイプ記号です。標準出力を標準入力に送ります。
メモ帳に張り付けると↓このようになります。

同様に「getclip」コマンドを使用すると入力することが出来ます。
【楽天ブックスならいつでも送料無料】日経 Linux (リナックス) 2016年 01月号 [雑誌]
$ banner --version
banner is part of cygutils version 1.4.15
Prints a string enlarged as a banner on the screen.
$ banner --help
banner is part of cygutils version 1.4.15
Prints a string enlarged as a banner on the screen.
Usage: banner A string to print...
General options
-c, --char=X use character <X>
-w, --width=80 set display width to <80>
Help options
-?, --help Show this help message
--usage Display brief usage message
--version Display version information
--license Display licensing information
This version works the same way as System V'S banner does:
The banner text is displayed horizontally.
$ banner --usage
Usage: banner [-?] [-c|--char=X] [-w|--width=80] [-?|--help] [--usage] [--version] [--license]
A string to print...
$ banner --license
banner is part of cygutils version 1.4.15
Prints a string enlarged as a banner on the screen.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Cygwinでgfortranを使ってみる。 2016.01.03
Cygwinでbcを使ってみる。 2015.12.30