コマンド |
概要(説明の先頭文のみ) |
USER NAME (USER) |
The argument field is a Telnet string identifying the user. |
PASSWORD (PASS) |
The argument field is a Telnet string specifying the user's password. |
ACCOUNT (ACCT) |
The argument field is a Telnet string identifying the user's account. |
CHANGE WORKING DIRECTORY (CWD) |
This command allows the user to work with a different directory or dataset for file storage or retrieval without altering his login or accounting information. |
CHANGE TO PARENT DIRECTORY (CDUP) |
This command is a special case of CWD, and is included to simplify the implementation of programs for transferring directory trees between operating systems having different syntaxes for naming the parent directory. |
STRUCTURE MOUNT (SMNT) |
This command allows the user to mount a different file system data structure without altering his login or accounting information. |
REINITIALIZE (REIN) |
This command terminates a USER, flushing all I/O and account information, except to allow any transfer in progress to be completed. |
LOGOUT (QUIT) |
This command terminates a USER and if file transfer is not in progress, the server closes the control connection. |
作り方
1. http://tools.ietf.org/html/rfc959から4.1.1. ACCESS CONTROL COMMANDSの内容をエディタ(今回はサクラエディタ)にコピーする。
2. ページヘッダを取り除く
・以下の順で、正規表現による置換を行う。
置換前 |
置換後 |
^Postel.*\r\n |
|
^ \r\n |
|
^RFC.*\r\n |
|
^File.*\r\n |
|
3. 用語と説明をタブ区切りの一覧にする。
・以下の順で、正規表現による置換を行う。
置換前 |
置換後 |
^ {9}([^ ].*)\r\n |
#\1\t\r\n |
{12}(.*)\r\n |
\1 \r\n |
\r\n |
|
# |
\r\n |
4. 説明の先頭文のみを切り出す。
・以下の順で、正規表現による置換を行う。
5. 用語と説明を表組み記法にする。
・以下の順で、正規表現による置換を行う。(「|(全角)」はじっさいには「|(半角)」
置換前 |
置換後 |
^(.*)\t([^\r]*) |
|\1|\2| |