dir.hlp

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 76 行

HLP
76
字号
{smcl}
{* 03mar2005}{...}
{cmd:help dir}, {cmd:help ls}
{hline}

{title:Title}

{p2colset 5 16 18 2}{...}
{p2col :{hi:[D] dir} {hline 2}}Display filenames{p_end}
{p2colreset}{...}


{title:Syntax}

{p 8 13 2}
{{cmd:dir}{c |}{cmd:ls}} [{cmd:"}][{it:filespec}][{cmd:"}]
[{cmd:,} {opt w:ide}]

{p 4 11 2}
Note:  Double quotes must be used to enclose {it:filespec} if the name
contains spaces.


{title:Description}

{pstd}
{cmd:dir} and {cmd:ls}{hline 2}they work the same way{hline 2}list the names of
files in the specified directory; the names of the commands come from names
popular on Windows and Unix computers.  {it:filespec} may be any valid
Windows, Unix, or Macintosh file path or file specification 
(see {bind:{bf:[U] 11.6 File-naming conventions}}) and may include "{cmd:*}"
to indicate any string of characters.


{title:Option}

{phang}
{opt wide} under Windows and Macintosh produces an effect similar to
specifying {cmd:/W} with the DOS {cmd:DIR} command{hline 2}it compresses the
resulting listing by placing more than one filename on a line.  Under Unix, it
produces the same effect as typing "{cmd:ls -F -C}".  Without the {opt wide}
option, {cmd:ls} is equivalent to "{cmd:ls -F -l}".


{title:Examples}

    Windows:
	{cmd:. dir}
	{cmd:. dir, w}
	{cmd:. dir *.dta}
	{cmd:. dir \mydata\*.dta}

    Unix:
	{cmd:. ls}
	{cmd:. ls, w}
	{cmd:. ls *.dta}
	{cmd:. ls ~/mydata/*.dta}

    Macintosh:
	{cmd:. ls}
	{cmd:. ls, w}
	{cmd:. ls *.dta}
	{cmd:. ls ~:mydata:*.dta}
	{cmd:. ls "~:My Data":*.dta}


{title:Also see}

{psee}
Manual:  {bf:[D] dir}

{psee}
Online:  {helpb cd}, {helpb copy}, {helpb erase},
{helpb mkdir}, {helpb shell}, {helpb type}
{p_end}

⌨️ 快捷键说明

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