ナビゲーション
FrontPage
FreeBSD
Linux
Citrix XenServer
VMware ESXi
Unixコマンド
MySQL
PostgreSQL
Windows
CMS/CRM
クラウド
用語
PHPスクリプト
Bashシェルスクリプト
Rubyスクリプト
開発日記
検索
ツールボックス
新しいページの作成
バックアップの表示
外部のリンク元
最近更新したページ
全ページ
ヘルプ
凍結
アップロード
ページ名の変更
最新の40件
2016-08-17
Linux/NagiosQL
Linux/CentOSチューニング
2016-02-23
Linux/ソフトウェアRAID復旧手順
2016-02-18
FreeBSD/DHCP
FreeBSD/squid
2016-02-15
Unixコマンド/file
2016-02-05
FreeBSD/DynaBook
FreeBSD/Linux compatibility
2016-01-21
PHPスクリプト/PEAR DBインストールできない
PHPスクリプト/PEAR DB
2016-01-20
PHP/フレームワーク/Zend Framework
PHP/フレームワーク
FreeBSD/Postfix+amavisd+clamav
2016-01-15
FreeBSD/sl
2015-12-04
Unixコマンド/dig
Unixコマンド/nslookup
Unixコマンド/traceroute
Linux/rsync
FreeBSD/rsync
Unixコマンド/vipw
2015-11-25
Linux/Postfix+MySQL+Postfix AdminによるバーチャルSMTPサーバの構築
Linux/Postfix + postgrey
2015-11-24
Linux/Postfix + amavisd + clamav
2015-05-25
Unixコマンド/ifconfig
2015-05-23
Unixコマンド/netstat
Unixコマンド/route
Unixコマンド/lsof
Unixコマンド/disown
Unixコマンド/time
Unixコマンド/crontab
2015-05-22
Unixコマンド/nohup
Unixコマンド/fgとbg
Unixコマンド/nice
Unixコマンド/kill
Unixコマンド/jobs
Unixコマンド/restor
Unixコマンド/dump
Unixコマンド/uncompress
Unixコマンド/compress
Unixコマンド/zcat
total:
2502
today:
1
yesterday:
0
now:
2
本文
ノート
?
編集
差分
一覧
Unixコマンド/pr の編集
*&size(15){''pr''}; [#z489d5ad] **''機能'' [#k9168fb7] prコマンドは、主にプリンタ出力用にテキストデータを整形し、標準出力に出力します。~ 引数にファイル名を指定しないと、prコマンドは標準出力からデータを読み込みます。~ ~ テキストファイルはそのままでもlprコマンドでプリンタに出力できますが、ヘッダやフッタ、~ ページ長やページ幅、段階などを変更したいときには、prコマンドで整形し、その出力を~ パイプでlprコマンドにつないで、印刷します。~ **''構文'' [#gbf4cbb2] pr [オプション] [ファイル名]&br; **''オプション'' [#ff0f41e8] +n nページ目から印刷する -カラム数 段組を指定したカラム数にする -d ダブルスペースで(1行ごとに空行を入れて)出力する -e Tabをスペースに変換する -f 改ページの際にフォームフィールド(用紙送り)コードを送る -h 文字列 ヘッダに指定した文字列を表示する -i スペースをTabに変換する -l n 1ページをn行にする(デフォルトは66行) -n [文字] [桁数] 行番号を指定した文字(デフォルトではタブ)で区切り、指定した桁数(デフォルトは5)で表示する。 -t ヘッダとフッタを印刷しない -w カラム数 ページ幅を指定したカラム数にする(デフォルトは72カラム) **''コマンド例'' [#d653f010] ▼ファイルを印刷用に整形する matsui@vaio$ pr httpd.conf | head -15 9 28 01:06 2004 httpd.conf Page 1 ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs/> for detailed information about ▼桁数や段数を指定して出力する matsui@vaio$ pr -2 -w 64 httpd.conf 9 28 01:06 2004 httpd.conf Page 1 ## # ## httpd.conf -- Apache HTTP se # NOTE! If you intend to place ## # mounted filesystem then pleas # (available at <URL:http://www # # you will save yourself a lot
タイムスタンプを変更しない
*&size(15){''pr''}; [#z489d5ad] **''機能'' [#k9168fb7] prコマンドは、主にプリンタ出力用にテキストデータを整形し、標準出力に出力します。~ 引数にファイル名を指定しないと、prコマンドは標準出力からデータを読み込みます。~ ~ テキストファイルはそのままでもlprコマンドでプリンタに出力できますが、ヘッダやフッタ、~ ページ長やページ幅、段階などを変更したいときには、prコマンドで整形し、その出力を~ パイプでlprコマンドにつないで、印刷します。~ **''構文'' [#gbf4cbb2] pr [オプション] [ファイル名]&br; **''オプション'' [#ff0f41e8] +n nページ目から印刷する -カラム数 段組を指定したカラム数にする -d ダブルスペースで(1行ごとに空行を入れて)出力する -e Tabをスペースに変換する -f 改ページの際にフォームフィールド(用紙送り)コードを送る -h 文字列 ヘッダに指定した文字列を表示する -i スペースをTabに変換する -l n 1ページをn行にする(デフォルトは66行) -n [文字] [桁数] 行番号を指定した文字(デフォルトではタブ)で区切り、指定した桁数(デフォルトは5)で表示する。 -t ヘッダとフッタを印刷しない -w カラム数 ページ幅を指定したカラム数にする(デフォルトは72カラム) **''コマンド例'' [#d653f010] ▼ファイルを印刷用に整形する matsui@vaio$ pr httpd.conf | head -15 9 28 01:06 2004 httpd.conf Page 1 ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs/> for detailed information about ▼桁数や段数を指定して出力する matsui@vaio$ pr -2 -w 64 httpd.conf 9 28 01:06 2004 httpd.conf Page 1 ## # ## httpd.conf -- Apache HTTP se # NOTE! If you intend to place ## # mounted filesystem then pleas # (available at <URL:http://www # # you will save yourself a lot
テキスト整形のルールを表示する
ログインまたはアカウント作成