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

📄 tcsh shell 编程入门 linuxsir_org.htm

📁 linuxSir 网站的精华文章
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0040)http://www.linuxsir.org/main/?q=node/139 -->
<HTML lang=zh-hans xml:lang="zh-hans" 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>TCSH shell 编程入门 | LinuxSir.Org</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css media=all>@import url( misc/drupal.css );
</STYLE>

<STYLE type=text/css>@import url( http://www.linuxsir.org/main/modules/codefilter/codefilter.css );
</STYLE>

<STYLE type=text/css media=all>@import url( modules/taxonomy_context/taxonomy_context.css );
</STYLE>
<LINK media=screen 
href="TCSH shell 编程入门  LinuxSir_Org.files/menuExpandable3.css" type=text/css 
rel=stylesheet>
<SCRIPT src="TCSH shell 编程入门  LinuxSir_Org.files/menuExpandable3.js" 
type=text/javascript></SCRIPT>
<LINK href="TCSH shell 编程入门  LinuxSir_Org.files/common.css" type=text/css 
rel=stylesheet>
<STYLE type=text/css media=all>@import url( themes/chameleon/marvin/style.css );
</STYLE>

<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV id=header><A title=Home href="http://www.linuxsir.org/main/"><IMG alt=Home 
src="TCSH shell 编程入门  LinuxSir_Org.files/logo.jpg"></A></DIV>
<DIV class=navlinks>
<DIV class=primary><A href="http://www.linuxsir.org/main/?q"><FONT 
color=white>首页</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/34"><FONT 
color=white>事件</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/"><FONT 
color=white>文档</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/"><FONT 
color=white>资源</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=search"><FONT color=white>搜索</FONT></A> | 
<A href="http://www.linuxsir.org/bbs"><FONT color=white>论坛</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/38"><FONT 
color=white>贡献者</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=node/3"><FONT color=white>关于</FONT></A> | 
<A href="http://www.linuxsir.org/main/?q=user"><FONT 
color=white>注册/登录</FONT></A></DIV></DIV>
<TABLE id=content>
  <TBODY>
  <TR>
    <TD id=sidebar-left>
      <DIV class="block block-block" id=block-block-1>
      <H2 class=title>子站索引</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://fedora.linuxsir.org/" target?_blank?>Fedora中文</A> 
        <LI><A href="http://debian.linuxsir.org/" target?_blank?>Debian中文</A> 
        <LI><A href="http://lfs.linuxsir.org/" target?_blank?>LFS 中文</A> 
        <LI><A href="http://slack.linuxsir.org/">Slackware</A> 
        <LI><A href="http://gentoo.linuxsir.org/">Gentoo中文</A> 
        <LI><A href="http://arch.linuxsir.org/">Arch 中文</A> </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-3>
      <H2 class=title>重要资讯</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/36">本站公告</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/34">新闻事件</A> 
        <LI><A href="http://www.linuxsir.org/bbs" target=_blank>本站论坛</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/38">贡 献 者</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-7>
      <H2 class=title>项目索引</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.fcitx.org/" target=_blank>小企鹅输入法</A> 
        <LI><A href="http://lumaqq.linuxsir.org/" target=_blank>LumaQQ</A> 
        <LI><A href="http://openq.linuxsir.org/" target=_blank>OpenQ</A> 
        <LI><A href="http://www.relaxbsd.org/" target=_blank>RelaxBSD</A> 
      </LI></UL></DIV></DIV>
      <DIV class="block block-user" id=block-user-1>
      <H2 class=title>站点导航</H2>
      <DIV class=content>
      <DIV class=menu>
      <UL>
        <LI class=leaf><A title=注册/登录 
        href="http://www.linuxsir.org/main/?q=user">注册/登录</A> 
        <LI class=collapsed><A 
        href="http://www.linuxsir.org/main/?q=aggregator">新闻聚合</A> 
      </LI></UL></DIV></DIV></DIV>
      <DIV class="block block-aggregator" id=block-aggregator-feed-2>
      <H2 class=title>LinuxSir.Org 论坛</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=272173&amp;goto=newpost">[PKGBUILD] 
        reciteword -- 轻轻松松背单词</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=272172&amp;goto=newpost">小企鹅输入法能否使用郑码?</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=272171&amp;goto=newpost">一个可能的bug</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=272170&amp;goto=newpost">保留隐藏分区,同时装win和linux?</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=272169&amp;goto=newpost">请教:suse10.1下vmware安装的winxp如何共享linux 
        mnt目录下挂载的fat32分区</A> </LI></UL></DIV>
      <DIV class=more-link><A title=查看此feed的最新消息 
      href="http://www.linuxsir.org/main/?q=aggregator/sources/2">更多</A></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-2>
      <H2 class=title>最新注册</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI>hzhpipi
        <LI>xigua2005
        <LI>ghost
        <LI>Carrie0225
        <LI>Sirius</LI></UL></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-3>
      <H2 class=title>当前在线</H2>
      <DIV class=content>1 用户 和 58 游客 在线
      <DIV class=item-list>
      <H3>在线用户</H3>
      <UL>
        <LI>hzhpipi</LI></UL></DIV></DIV></DIV></TD>
    <TD id=main>
      <DIV class=breadcrumb><A href="http://www.linuxsir.org/main/?q=">首页</A> » 
      <A 
      href="http://www.linuxsir.org/main/?q=taxonomy/term/52">命令/SHELL/PERL</A></DIV>
      <H2>TCSH shell 编程入门</H2><!-- begin content -->
      <DIV class=node>
      <DIV class=content>
      <P><B>作者:</B><A href="http://www.linuxsir.org/bbs/member.php?u=5341" 
      target=_blank>KornLee</A><BR><B>来自:</B>LinuxSir.Org<BR><B>摘要:</B>TCSH 
      shell不同于其他的shell,因为控制结构更符合程序设计语言的格式。例如TCSH 
      的test条件的控制结构是表达式,而不是linux命令,得到的值是逻辑值true或false,TCSH的表达式与C语言中的表达式基本相同。</P>
      <P><FONT size=5><B>目录</B></FONT></P>
      <P><A href="http://www.linuxsir.org/main/?q=node/139#0"><B>第一篇 TCSH 
      shell简介</B></A></P>
      <UL><A href="http://www.linuxsir.org/main/?q=node/139#1"><B>一、TCSH 
        shell变量、脚本和参数</B></A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/139#2"><B>二、脚本输入和脚本输出: $ &lt; 
        </B></A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/139#3"><B>三、操作符</B></A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/139#4"><B>四、控制结构</B></A>
        <P></P>
        <UL><A 
          href="http://www.linuxsir.org/main/?q=node/139#4.1">1、条件控制结构;功能</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/139#4.2">2、循环控制结构: 功能</A> 
        </UL>
        <P><A 
        href="http://www.linuxsir.org/main/?q=node/139#5"><B>五、测试表达式;()</B></A></P>
        <UL><A href="http://www.linuxsir.org/main/?q=node/139#5.1">1、字符串比较: 
          功能</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/139#5.2">2、逻辑运算符: 功能</A> 
</UL>
        <P><A 
        href="http://www.linuxsir.org/main/?q=node/139#6"><B>六、TCSH内建命令</B></A></P>
        <UL><A 
          href="http://www.linuxsir.org/main/?q=node/139#6.1">http://www.linuxsir.org/main/?q=node/139#6.1</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/139#6.2">2、alias</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/139#6.3">3、argv</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/139#6.4">4、bg</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/139#6.5">5、break</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/139#6.6">6、breaksw</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/139#6.7">7、builtins</A><BR><A 

⌨️ 快捷键说明

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