⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trn.1

📁 早期freebsd实现
💻 1
📖 第 1 页 / 共 5 页
字号:
(If you don't want to see this article for a while you're probably betteroff using M instead of m, otherwise this article might get picked againas the first available article sooner than you'd like.).Ip M 8Mark the current article to return on newsgroup exit.Until then, the current article will be marked as read.This is useful for returning to an article in another session..Ip Y 8Yank back the marked-to-return articles, clearing their to-return status.If you are reading selected articles, the yanked articles come back selected..Ip /pattern 8Scan forward for article containing.I patternin the subject.See the Regular Expressions section.Together with the escape substitution facility described later, it becomeseasy to search for various attributes of the current article, such assubject, article ID, author name, etc.The previous pattern can be recalled with ESC.If.I patternis omitted, the previous pattern is assumed..Ip /pattern/f 8Scan forward for article containing.I patternin the from line..Ip /pattern/h 8Scan forward for article containing.I patternin the header..Ip /pattern/a 8Scan forward for article containing.I patternanywhere in the article..Ip /pattern/r 8Scan read articles also..Ip /pattern/c 8Make search case sensitive.Ordinarily upper- and lower-case are considered the same..Ip "/pattern/modifiers:command{:command}" 8Apply the commands listed to articles matching the search command (possiblywith h, a, or r modifiers).Applicable commands include \*(L'm\*(R' (mark as unread), \*(L'M\*(R'(mark as read-until-exit), \*(L'j\*(R' (mark as read), \*(L"s dest\*(R"(save to a destination), \*(L"e dir\*(R" (extract to directory),\&\*(L"!command\*(R" (shell escape), \*(L"=\*(R" (print the subject),\&\*(L'+\*(R' (select the article), \*(L'-\*(R' deselect the article,\&\*(L'T+\*(R' (auto-select the entire thread), \*(L'Tj\*(R'(auto-junk the entire thread), \*(L"++\*(R" (select the associated thread),\&\*(L"--\*(R" deselect the associated thread), and \*(L'C\*(R' (cancel).If the first command is \*(L'm\*(R' or \*(L'M\*(R', modifier r is assumed.A K may be included in the modifiers (not the commands) to cause theentire command (sans K) to be saved to the local KILL file, where it willbe applied to every article that shows up in the newsgroup..SpFor example, to save all articles in a given newsgroup to the line printerand mark them read, use \*(L"/^/\||\|lpr:j\*(R".If you type \*(L"/^/K\||\|lpr:j\*(R", this will happen every time you enter thenewsgroup..Ip ?pattern 8Scan backward for article containing.I patternin the subject.May be modified as the forward search is: ?pattern?modifiers[:commands].It is likely that you will want an r modifier when scanning backward..Ip k 8Mark as read all articles with the same subject as the current article.(Note: there is no single character command to temporarily mark as read (Mcommand) articles matching the current subject.That can be done with \*(L"/<ESC>s/M\*(R", however.).Ip \, 8Mark the current article and all its replies as read..Ip J 8Junk all the articles in the current thread, even if it contains multiplesubjects..Ip A 8Add a subject-search command to the memorized list for this group (in theKILL file).You are prompted to choose selection (+), junking (j),selection including all replies (.) or junking including all replies (,)..Ip K 8This is a synonym for the command \*(L"Aj\*(R" which adds a command tojunk the current subject to the memorized commands for the group.See also the K modifier on searches above..Ip T 8Add a thread-oriented command to the memorized list for this group.You are prompted to choose selection of entire thread (+), junking ofentire thread (j), selection of an article and its replies (.), junkingof an article and its replies (,), clearing the auto-selection/junkingfor this thread (c), or clearing the auto-selection/junking for an articleand its replies (C)..Ip ^K 8Edit the local list of memorized commands (a.\|k.\|a. a KILL file) for thisnewsgroup.Each line of the KILL file is either a subject-affecting command of theform /pattern/x or a thread-affecting command of the form <message-id> Tx.The first line in the KILL file has the form \*(L"THRU <number>\*(R",which tells.I trnthe maximum article number that the KILL file has been applied to.The THRU value is usually only used to keep header or article searchesfrom happening multiple times.Subject and from-line searches are quite fast if the group has cached dataaround (e.\|g. a .\|thread or .\|overview file).If it doesn't, the THRU line is used to set a lower boundary on thesearch to keep the startup time as short as possible.If trn skipped some selections (or you're not sure), wait for the group tofinish being cached (e.\|g. visiting the selector forces the caching ofall unread articles), quit the group, and re-enter..SpTo see only newgroup articles in the control newsgroup, for instance, youmight include the line.Sp/newgroup/:+.Spwhich selects all subjects containing \*(L"newgroup\*(R".You can add lines automatically via the A and T commands as well as theK search modifier, but editing is the only way to remove subject commands(thread commands die automatically as the thread dies).If either of the environment variables VISUAL or EDITOR is set, thespecified editor will be invoked; otherwise a default editor (normally vi)is invoked on the KILL file..SpThe KILL file may also contain switch-setting lines beginning with \*(L'&\*(R'.Additionally, any line beginning with \*(L'X\*(R' is executed on exitfrom the newsgroup rather than on entrance.This can be used to set switches back to a default value.One use for this capability is to set your save directory to a custom valueupon entry to a newsgroup and set it back on exit using the \-ESAVEDIR option.See also the.B \-/option for another solution to multiple save directories without using KILLfiles..Ip r 8Reply through net mail.The environment variables MAILPOSTER and MAILHEADER may be used to modifythe mailing behavior of.I trn(see the environment section).If the current article does not exist (such as the \*(L"End of newsgroup\*(R"pseudo-article you can get to with a \*(L'$\*(R' command), invokes the mailerto nobody in particular..Ip R 8Reply, including the current article in the header file generated.(See \*(L'F\*(R' command below).The YOUSAID environment variable controls the format of the attribution line..Ip f 8Submit a follow-up article.If the current article does not exist (such as the \*(L"End of newsgroup\*(R"pseudo-article you can get to with a \*(L'$\*(R' command), posts an original(root) article..Ip F 8Submit a follow-up article, and include the old article, with lines prefixedeither by \*(L">\*(R" or by the argument to the.B \-Fswitch..I Trnwill attempt to provide an attribution line in front of the quoted article,generated from the From: line of the article.Unfortunately, the From: line doesn't always contain the right name; youshould double check it against the signature and change it if necessary,or you may have to apologize for quoting the wrong person.The environment variables NEWSPOSTER, NEWSHEADER and ATTRIBUTION may beused to modify the posting behavior of.I trn(see environment section)..Ip C 8Cancel the current article, but only if you are the contributor or superuser..Ip z 8Supersede the current article, but only if you are the contributor..Ip Z 8Same as the \*(L'z\*(R' command, but you start with a copy of theoriginal article to work with..Ip c 8Catch up in this newsgroup; i.\|e., mark all articles as read..Ip U 8Mark some or all articles as unread.You can choose to mark the current thread, sub-thread (the current articleand its replies), all the articles, or start up the selectorto choose specific articles to set unread..Ip u 8Unsubscribe from this newsgroup..Ip "s destination" 8Save to a filename or pipe using sh.If the first character of the destination is a vertical bar, the rest ofthe command is considered a shell command to which the article is passedthrough standard input.The command is subject to filename expansion.(See also the environment variable PIPESAVER.)If the destination does not begin with a vertical bar, the rest of thecommand is assumed to be a filename of some sort.An initial tilde \*(L'~\*(R' will be translated to the name of the homedirectory, and an initial environment variable substitution is also allowed.If only a directory name is specified, the environment variable SAVENAMEis used to generate the actual name.If a non-absolute filename is specified, the environment variableSAVEDIR will be used to generate the actual directory.If nothing is specified, then obviously both variables will be used.Since the current directory for.I trnwhile doing a save command is yourprivate news directory, typing \*(L"s ./filename\*(R" will force the fileto your news directory.Save commands are also run through % interpretation, so that you canenter \*(L"s %O/filename\*(R" to save to the directory you were in when you ran.IR trn ,and \*(L"s %t\*(R" to save to a filename consisting of the Internet addressof the sender..SpAfter generating the full pathname of the file to save to,.I trndetermines if the file exists already, and if so, appends to it..I trnwill attempt to determine if an existing file is a mailbox or a normal file,and save the article in the same format.If the output file does not yet exist,.I trnwill by default ask you which format you want, or you can make it skip thequestion with either the.B \-Mor.B \-Nswitch.If the article is to be saved in mailbox format, the command to do so isgenerated from the environment variable MBOXSAVER.Otherwise, NORMSAVER is used..Ip "S destination" 8Save to a filename or pipe using a preferred shell, such as csh.Which shell is used depends first on what you have the environment variableSHELL set to, and in the absence of that, on what your news administratorset for the preferred shell when he or she installed.IR trn ..Ip "| command" 8Shorthand for \*(L"s | command\*(R"..Ip "w destination" 8The same as \*(L"s destination\*(R", but saves without the header..Ip "W destination" 8The same as \*(L"S destination\*(R", but saves without the header..Ip "e directory" 8Extract a shell archive or uuencoded binary to the designated directory.The article is first scanned to try discover what type of data isencapsulated.If a \*(L"cut here\*(R" line is found, the first non-blank line after itmust be either the start of a shar header, or the \*(L"begin\*(R"or \*(L"table\*(R" line of a uuencoded binary.The default for extracting shars is to send the data portion of the fileto /bin/sh, but that can be overridden with the UNSHAR variable (see theENVIRONMENT section).Uudecoding is done internally by a decoder that can handle the databeing split up over multiple articles, and extracted one piece at a time.To decode a multi-article file, either execute the \*(L'e\*(R'command in each article in sequence, use an article range to execute thecommand, or use the \*(L":e\*(R" command to repeat the command for each of thecurrently selected articles.When the \*(L'e\*(R' command is not followed by any arguments, it willrepeat the arguments from the last extraction.All directory specifications are relative to the value of SAVEDIR, so youcan use the command \*(L"e .\*(R" to force an extraction to SAVEDIR itself.If a uudecoding is in progress (i.\|e. the last piece wasn't extracted yet)and you exit the group, the partial file will be removed.This also occurs if you start to extract a new uuencoded file before theprevious one was finished.See also the \*(L'E\*(R' command for ending a multi-part uudecodingmanually..SpThere is one special case that is handled differently: if the first file in arecognizable shar file is a uuencoded binary that was packed with linesstarting with an \*(L'X\*(R', we will not unshar the file but insteaduudecode it.If this causes problems, you can override the default extraction methodby following the directory with an explicit command to execute, asdescribed below..Ip "e directory|command" 8This form of the \*(L'e\*(R' command allows you to extract other dataformats than shar or uuencoded files or to override the decisions madeby the automatic extraction selection described above.In normal operation, all data following what we recognize asa \*(L"cut here\*(R" line will be sent to the specified command.Additionally, the distinctive beginning of a shell archive is also recognizedwithout a preceding cut line.When the command is run, the default directory will be set to thespecified directory, or the valueof SAVEDIR if unspecified.Entering the \*(L'e\*(R' command without arguments will repeat yourprevious extract command.You can use the command \*(L"e dir|\*(R" to extract to a new directoryusing the previously-specified command..Ip E 8This command ends any multi-part uuencoded file extraction that you began,but are unable (or unwilling) to complete.The partially extracted file is removed..Ip & 8Print out the current status of command-line switches..Ip "&switch {switch}" 8Set additional command-line switches..Ip && 8Print out current macro definitions..Ip "&&keys commands" 8Define an additional macro..Ip !command 8Escape to a subshell.One exclamation mark (!) leaves you in your own news directory.A double exclamation mark (!!) leaves you in the spooldirectory of the current newsgroup.The environment variable SHELL will be used if defined.If.I commandis null, an interactive shell is started..SpYou can use escape key substitutions described later to get to manyrun-time values.The command is also run through % interpretation, in case it is being calledfrom a range or search command..Ip \+ 8Start the selector in the last-used mode.If the newsgroup is unthreaded and the default selector mode is threads,we temporarily switch to subject selection unless manually overridden..Ip _a 8Start the selector in article mode..Ip _s 8Start the selector in subject mode..Ip _t 8Start the selector in thread mode..Ip _T 8Start the selector in thread mode unless the group isn't threaded, inwhich case we settle for the subject selector..Ip = 8List subjects of unread articles..Ip # 8Print last article number..Ip _+ 8Select the entire thread associated with the current article..Ip _- 8Deselect the entire thread associated with the current article..Sh "Pager Level"At the pager level (within an article), the prompt looks like this:.Sp\*(--MORE\*(--(17%).Spand a number of commands may be given:.Ip SP 8Display next page..Ip x 8Display next page and decrypt as a rot13 message..Ip d 8Display half a page more..Ip CR 8Display one more line..Ip q 8Go to the end of the current article (don't mark it either read or unread).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -