`
zwhc
  • 浏览: 258316 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

学习计算机需要多少单词?

阅读更多
最近开发了一个翻译程序,效果如下:

一、输入英文文档



                                                Commands Reference, Volume 2, d - h

env Command

Purpose

       Displays the current environment or sets the environment for the execution of a command.

Syntax

To Display Multiple Environment Variables

       env [ -i | - ] [Name=Value ]... [Command [ Argument ... ] ]

To Display A Single Environment Variable

       env [Name]

Description

       The env command allows you to display your current environment or run a specified command in a changed environment.

       If no flags or parameters are specified, the env command displays your current environment, showing one Name=Value pair per
       line.

Flags

       -i
            Ignores the inherited environment and invokes the command specified by the Command parameter with the environment
            specified by the Name=Value parameters.

Parameters

       Name=Value
            You can run a command in a modified version of the current environment by specifying one or more Name=Value parameters.
            Use the -i flag if you wish to replace the entire current environment with the specified Name =Value parameters. In
            either case, environment changes are effective only while the specified command is running.
       Command
            The Command parameter has an optional Argument variable. If the specified command is one of the Korn shell special
            built-in commands, results are unspecified. Korn shell built-in commands are described in the ksh command.

Exit Status

       If the Command parameter is specified, the exit status of the env command is the exit status of the command specified in the
       Command parameter. Otherwise, the env command exits with one of the following values:
       0
            The env command completed successfully.
       1-125
            An error occurred in the env command.
       126
            The command specified by the Command parameter was found, but could not be invoked.
       127
            The command specified by the Command parameter was not found.

Examples
       1    To change the TZ environment variable while running the date command, type:

            TZ=MST7MDT date

            OR

            env TZ=MST7MDT date

            Each of these commands displays the time in mountain time and the current date. The two commands shown are equivalent.
            When the date command is finished, the previous value of the TZ environment variable takes effect again.
       2    To run the make command in an environment that consists only of definitions for the PATH, IDIR, and LIBDIR environment
            variables, type:

            env -i PATH=$PATH IDIR=/$HOME/include LIBDIR=/$HOME/lib make

            You must specify the PATH environment variable so that the shell can find the make command. When the make command is
            finished, the previous environment takes effect.

Files

       /usr/bin/env
            Contains the env command.

Related Information

       The printenv command, ksh command.

       The environment file.

       The profile file format.

       The exec subroutines.

       Commands in Operating system and device management.

       Profiles overview in Operating system and device management.

       Shells in Operating system and device management.




二、输出的文档

<pre>
                                                Commands Reference, Volume 2, d - h

env Command

Purpose

       Displays the current environment or sets the environment for the execution of a command.

Syntax

To Display Multiple Environment Variables

       env [ -i | - ] [Name=Value ]... [Command [ Argument ... ] ]

To Display A Single Environment Variable

       env [Name]

Description

       The env command allows you to display your current environment or run a specified command in a changed environment.

       If no flags or parameters are specified, the env command displays your current environment, showing one Name=Value pair per
       line.

Flags

       -i
            <font color='red'>Ignores(vt.不理睬,忽视,[律](因证据不足而)驳回诉讼)</font> the inherited environment and <font color='red'>invokes(v.调用)</font> the command specified by the Command parameter with the environment
            specified by the Name=Value parameters.

Parameters

       Name=Value
            You can run a command in a modified version of the current environment by specifying one or more Name=Value parameters.
            Use the -i flag if you wish to replace the entire current environment with the specified Name =Value parameters. In
            either case, environment changes are effective only while the specified command is running.
       Command
            The Command parameter has an optional Argument variable. If the specified command is one of the Korn shell special
            built-in commands, results are <font color='red'>unspecified(null)</font>. Korn shell built-in commands are described in the ksh command.

Exit Status

       If the Command parameter is specified, the exit status of the env command is the exit status of the command specified in the
       Command parameter. Otherwise, the env command exits with one of the following values:
       0
            The env command completed successfully.
       1-125
            An error occurred in the env command.
       126
            The command specified by the Command parameter was found, but <font color='red'>could(vbl.can的过去式)</font> not be <font color='red'>invoked(v.调用)</font>.
       127
            The command specified by the Command parameter was not found.

Examples
       1    To change the TZ environment variable while running the date command, type:

            TZ=MST7MDT date

            OR

            env TZ=MST7MDT date

            Each of these commands displays the time in mountain time and the current date. The two commands shown are <font color='red'>equivalent(adj.相等的,相当的,同意义的n.等价物,相等物)</font>.
            When the date command is finished, the previous value of the TZ environment variable takes effect again.
       2    To run the make command in an environment that consists only of definitions for the PATH, IDIR, and LIBDIR environment
            variables, type:

            env -i PATH=$PATH IDIR=/$HOME/include LIBDIR=/$HOME/lib make

            You must specify the PATH environment variable so that the shell can find the make command. When the make command is
            finished, the previous environment takes effect.

Files

       /usr/bin/env
            Contains the env command.

Related Information

       The printenv command, ksh command.

       The environment file.

       The <font color='red'>profile(n.剖面,侧面,外形,轮廓)</font> file format.

       The exec <font color='red'>subroutines(子程序, routine: n.例行公事,常规,日常事务,程序)</font>.

       Commands in Operating system and device management.

       <font color='red'>Profiles(n.剖面,侧面,外形,轮廓)</font> overview in Operating system and device management.

       Shells in Operating system and device management.

</pre>


三、生词
======2
invoke|v.调用
profile|n.剖面,侧面,外形,轮廓
======1
equivalent|adj.相等的,相当的,同意义的n.等价物,相等物
could|vbl.can的过去式
subroutines|子程序, routine: n.例行公事,常规,日常事务,程序
unspecified|null
ignore|vt.不理睬,忽视,[律](因证据不足而)驳回诉讼



四、另附一个复杂点的文档的生词
date 指令
======19
alternative|n.二中择一,可供选择的办法,事物adj.选择性的,二中择一的
======12
representation|n.表示法,表现,陈述,请求,扮演,画像,继承,代表
======10
symbols|代码
descriptor|[计]描述符
======6
determine|v.决定,确定,测定,使下定决心,[律]使终止
digit|n.阿拉伯数字,手指或足趾,一指宽(约四分之三英寸)
======4
refer|vt.提交,谈及,归诸于,指点把...提交,使求助于vi.提到,涉及,查阅,咨询
appropriate|adj.适当的
equivalent|adj.相等的,相当的,同意义的n.等价物,相等物
======3
abbreviate|v.缩写,缩短,简化,简写成,缩写为
category|n.种类,别,[逻]范畴
range|n.山脉,行列,范围,射程vt.排列,归类于,使并列,放牧vi.平行,延伸,漫游
era|n.时代,纪元,时期,[地]代
universal|adj.普遍的,全体的,通用的,宇宙的,世界的
coordinate|n.同等者,同等物,坐标(用复数)adj.同等的,并列的vt.调整,整理
four-digit|null
subroutine|子程序, routine: n.例行公事,常规,日常事务,程序
======2
two-digit|null
inclusive|adj.包含的,包括的
correspond|vi.符合,协调,通信,相当,相应
lang|null
setting|n.安置,安装,(太阳)落山,(固定东西的)框架,底座
January|n.一月(略作Jan)
new-line|null
fielddescriptor|null
adjust|vt.调整,调节,校准,使适合
julian|null
======1
greater|null
synonym|n.同义字
versus|prep.对(指诉讼,比赛等中),与...相对
truncated|adj.切去顶端的,缩短了的,被删节的
od|n.自然力
twenty-first|null
oi|null
positive|adj.肯定的,实际的,积极的,绝对的,确实的adj.[数]正的adj.[电]阳的adj.[语法]原级的
oh|int.[表示惊讶、害怕等]哦,哎哟
unrecognized|null
determinable|null
national|adj.国家的,国立[有]的,民族的
oy|null
twentieth|adj.第二十的,二十分之一的n.第二十(个),二十分之一,(月)的第二十日
discuss|vt.讨论,论述
unspecified|adj.未指明的,未详细说明的
right-justified|null
time-zone|null
fmt|null
sped|null
globally|全球
drift|n.冲洗,漂流物,观望,漂流v.(使)漂流
nlspath|null
fri|null
posix|null
authority|n.权威,威信,权威人士,权力,职权,典据,著作权威
space-filled|null
adjustment|n.调整,调节,调节器
alt|null
multibyte|null
interpretation|n.解释,阐明,口译,通译
strftime|null
attention|n.注意,关心,关注,注意力,(口令)立正!
notation|n.符号
synchronize|v.同步
localtime|null
fraction|n.小部分,片断,分数
catalogue|n.目录
-hour-clock|null
keyword|null
unmodified|null
ctype|null
divide|v.分,划分,分开,隔开
represent|vt.表现,描绘,声称,象征,扮演,回忆,再赠送,再上演vi.提出异议
sequence|n.次序,顺序,序列
specification|n.详述,规格,说明书,规范




五、代码非常粗糙,就不发出来现丑了。

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics