命令行大全

ul

嚯嚯 发表于 2020-07-04 04:43浏览次数:

在类Unix操作系统上,ul实用程序执行文本下划线。 本文档介绍ul的Linux版本。

查看英文版

目录:

1 ul 运行系统环境

2 ul 描述

3 ul syntax

4 ul 示例

ul 运行系统环境

Linux

ul 描述

所述UL实用程序读取指定的文件(或标准输入,如果没有给出)和平移的发生下划线到其指示强调的序列终端在使用中,由指定的环境变量 TERM。读取文件/ etc / termcap以确定适当的下划线顺序。如果终端不能加下划线,但可以脱颖而出(例如,粗体字),则使用该模式。如果终端机可能会执行过度,或自动处理下划线,则ul退化到相当于cat的操作级别。如果终端不能下划线,则下划线将被忽略。在翻译过程中,还会翻译其他一些特殊字符。例如,选项卡将扩展为空格。

-i 下划线由包含适当的破折号“ - ” 的单独行表示;当您要查看终端上nroff输出流中存在的下划线时,这很有用。
-t terminal 用terminal type terminal覆盖环境中指定的终端类型。

环境

LANG,LC_ALL,LC_CTYPETERM环境变量影响的执行UL

The ul utility reads the named files (or standard input if none are given) and translates occurrences of underscores to the sequence which indicates underlining for the terminal in use, as specified by the environment variable TERM. The file /etc/termcap is read to determine the appropriate sequences for underlining. If the terminal is incapable of underlining, but is capable of a standout mode (boldface, for example) then that is used instead. If the terminal can overstrike, or handles underlining automatically, ul degenerates to a level of operation equivalent to cat. If the terminal cannot underline, underlining is ignored. During the translation some other special characters also get translated; for example, tabs get expanded to spaces.

-i Underlining is indicated by a separate line containing appropriate dashes ‘-’; this is useful when you want to look at the underlining that is present in an nroff output stream on a terminal.
-t terminal Overrides the terminal type specified in the environment with terminal type terminal.

Environment

The LANGLC_ALLLC_CTYPE and TERM environment variables affect the execution of ul.

查看英文版

查看中文版

ul syntax

ul [-i] [-t terminal] [file ...]
ul [-i] [-t terminal] [file ...]

查看英文版

查看中文版

ul 示例

ul myfile.txt
处理myfile.txt以显示文本下划线。
ul myfile.txt
Processes myfile.txt for the underlining of text.

查看英文版

查看中文版