📄 type.hlp
字号:
{smcl}
{* 20jan2005}{...}
{cmd:help type}
{hline}
{title:Title}
{p2colset 5 17 19 2}{...}
{p2col :{hi:[D] type} {hline 2}}Display contents of a file{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 13 2}{cmdab:ty:pe} [{cmd:"}]{it:filename}[{cmd:"}] [{cmd:,} {it:options}]
{p 4 11 2}Note: Double quotes must be used to enclose {it:filename} if the
name contains blanks.
{synoptset 10}{...}
{synopthdr}
{synoptline}
{synopt :{opt a:sis}}show the file as is; default is to display files with suffixes {hi:.smcl} or {hi:.hlp} as SMCL{p_end}
{synopt :{opt smcl}}display file as SMCL; default for files with suffixes {hi:.smcl} or {hi:.hlp}{p_end}
{synopt :{opt s:howtabs}}display tabs as {hi:<T>} rather than being expanded{p_end}
{synopt :{opt star:bang}}list lines in the file that begin with "{cmd:*!}"{p_end}
{synoptline}
{p2colreset}{...}
{title:Description}
{pstd}
{cmd:type} lists the contents of a file stored on disk. This command is
similar to the DOS {cmd:TYPE} and Unix {cmd:more}(1) or {cmd:pg}(1) commands.
{pstd}
In Stata for Unix, {cmd:cat} is a synonym for {cmd:type}.
{title:Options}
{phang}
{cmd:asis} specifies that the file should be shown exactly as it is. The
default is to display files with suffixes {hi:.smcl} or {hi:.hlp} as SMCL,
meaning the SMCL directives are interpreted and properly rendered. Thus
{cmd:type} can be used to look at files created by the {cmd:log using}
command.
{phang}
{opt smcl} specifies that the file should be displayed as SMCL, meaning that
the SMCL directives are interpreted and properly rendered. This is the
default for files with suffixes {hi:.smcl} or {hi:.hlp}.
{phang}
{opt showtabs} requests that any tabs be displayed as {hi:<T>} rather than
being expanded.
{phang}
{opt starbang} lists only the lines in the specified file that begin
with the characters "{cmd:*!}" . Such comment lines are typically used to
indicate the version number of ado-files, class files, etc. {opt starbang}
may not be used with SMCL files.
{title:Examples}
Windows:
{cmd:. type myfile.dct}
{cmd:. type ..\dcts\myfile.dct}
Unix:
{cmd:. type myfile.dct}
{cmd:. type ../dcts/myfile.dct}
Macintosh:
{cmd:. type myfile.dct}
{cmd:. type ..:dcts:myfile.dct}
{cmd:. type "..:My Dicts:myfile.dct"}
{title:Also see}
{psee}
Manual: {bf:[D] type}
{psee}
Online: {helpb cd}, {helpb copy}, {helpb dir}, {helpb erase},
{helpb mkdir}, {helpb shell}, {helpb translate}, {helpb view}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -