:

                            4

                    00210-01 33 01-4



               1.   


      :

:                

                 ;


:          . , 

                   ,     ;

                     ,

                      

               .


:         ;


:           ,   -

                 ;


:     , -

                    

                ;


:         

               ;


 :

           .  

              

          

          -

   .




                            5

                    00210-01 33 01-4



                                             





























                            6

                    00210-01 33 01-4

:

      apropos -      .


:

      apropos  ...


:

       apropos       

          ,   -

      ,    ("").   

             -

       ,       

           ,  e 

        ,        

      -  .




        :


      apropos  time


                

      :


      alarm  -        ;


      time   -        .






                            7
                    00210-01 33 01-4

:
      ar -     .

:
      ar  []   ...

:
       ar   ,  '  
         .    -
               
      ,     ld.   -
      ,            
      .

      ""         drqtpmx,
         '     
       vuaibcl (   ). -
        ""        . 
      ""    ,  
            ,    
      .     :

      d -         ;

      r -       .    
                 ,     .
                "r"    -
               "u",     
             ,      -
            ,     ,   -

                            8
                    00210-01 33 01-4

            .      -
              "abi"    "",
                (a)      (b
             i)  "".    
               ;

      q -         
            .    . 
               ,      
                .   -
                      
                ;

      t -     ,     .  
                  ,    
              ,    
                 .   
                 ,  
             ;

      p -          
              .    -
            ;

      m -       .     -
                  "-
            ",     , 
               "r",     
            ;

                            9
                    00210-01 33 01-4

      x -           -
             .     , -
              .     -
                 ;

      v -      ,  ar   -
                .  -
                    "t",    
                 ,   -
            .       
              "p",     
            ;

      c -     ,        
            ""  ;

      l -     ar     
               /tmp.    
             ,      .

:
      /tmp/v*    

  :
      ld, ar, lorder, ranlib

:
                   
      ,       .


                            10
                    00210-01 33 01-4

:
      as, newas - 

:
      as [-] [-o ] [...]

:
       as      
          ,     .
         "-",     -
         .

         as    ""
      ,      "-o",   a.out
        .

       newas    ,  -
          ,    -
          ,  
            -
       (         "="
        ).

:
      /tmp/as2          
      /tmp/atm[1-3]?   
      a.out           ' 

  :
      ld, nm, adb, a.out.

                            11
                    00210-01 33 01-4

         .

:
               -  
          "?",     . 
         ,   
          ,     , 
           .    
       :

      )       ;

      ]       ;

      <      ;

      *       ;

      .        ;

      a       ;

      b           ;

      e       ;

      f        ( 'f'  'b');

      g      ;

      i         "if";

      m         ;

      o      ;


                            12
                    00210-01 33 01-4

      p     "."   1-  2- ;

      r      ;

      u      ;

      x      .

:
              ,
        ,   o.











                            13
                    00210-01 33 01-4

:
      at -     .

:
      at  [] []

:
       at    "" (  
      -   )     -
      . ,  ""     
        SHELL  ( CSHELL).    
          (cd),    -
              at.   
         "".   
          
       (GID)   (UID) .

       ""    1  4 , 
              "a", "p", "n" 
      "m",  " ", " ",  ""
        "" .     -
        .     -
          .     -
      ,  24-  .

        ""    -
            ,    ,
       -   .        "week",
            .   
           .  -


                            14
                    00210-01 33 01-4

         :

      at 8am jan 24
      at 1530 fr week

       at      
          /usr/lib/atrun  cron. 
      at   ,    atrun.

:
      /usr/spool/at/...
                 ""  ""
              "" ; ""   -
             .

      /usr/spool/at/lasttimedone
             ""    .

      /usr/spool/at/past
             ,      
            .

      /usr/lib/atrun
            ,          -
              .

  :
      calendar, cron

:
             -
          .


                            15
                    00210-01 33 01-4

:
              /usr/lib/atrun
             -
        24 .














                            16
                    00210-01 33 01-4

:
      awk -     

:
      awk [-fc] [] []...

:
        awk      
      ,         .  
            ""     
      ,        -
      ,    "".     
      ""      , 
             
        ""   .  
                
      "",    "-f ".

         .    
        "-",    -
      .       -
       "-".   
           .

            ,    
       (      
      FS).    $1,$2,...;.  $0    
       .

       "-"   :

                            17
                    00210-01 33 01-4

             {}

        "{}"      -
        "" .  "" -
      ,  ""    
      .

           -
      .

        :
      if()  [else ]
      while () 
      for (; ; ) 
      break
      continue
      { []... }
       = 
      print [-] [>]
      printf  [,-] [>]
      next #   
           #    
      exit #   .

             ,  
          .   -
          .    
                 -
        +, -, *, /, %    (-
        ).     -


                            18
                    00210-01 33 01-4

         ++, --, +=, -=, *=, /=   %=.  
            ,  
      ( x[i])   .    
          .  
         ,    - 
          -
       .      -
       "...".

       print         
        (   ,   ">"),  
             -
         .  printf 
            .

        length     -
      ,   ,   ,
        .      
       , log, sqrt  int,   -
          .   substr(s,m,n)
       n-   s, -
        m- .    sprintf(,,,...)
             printf -
      ,   "",  -
       .

            -
        (!, ||, &&  )    -
       .     -

                            19
                    00210-01 33 01-4

        "/".   
           .  -
              -
      .

             ,  
        (       
         ,        
            ,        
      ).

                 
      :

        -

        

       ""       
        ,  ""   
       ^ (""),    !^  ("  ").  
         , 
          .

        BEGIN  END    
                
              .  BEGIN
         ,  END - .

        "c"    -
            :

                            20
                    00210-01 33 01-4

            BEGIN {FS="c"}

          "-fc".

             -
      :

      NF       -     ;

      NR       -    ;

      FILENAME -    ;

      FS       -    (    -
                 );

      RS       -    (  -
                   );

      OFS      -    (   -
                 );

      ORS      -    (  
                 -   );

      OFMT     -     (    -
                 "%.6g");

      $0       -  ;

      $i       - i-   .

:
           72 :

                            21
                    00210-01 33 01-4

            length > 72

            :

            {print $2, $1}

          :

            {for (i=NF; i>0; --i) print $i}

        ,   ,  
      "start"     "stop" :

            /start/,/stop/

        ,      
         :

            $1 != prev {print; prev = $1}

  :
      lex, sed.

         awk.

:
        awk      -
         ( 64  )  -
          .  
                
      .     
           awk   
      (   (?)):

                            22
                    00210-01 33 01-4

       1 : unknown type (?) in penter
       2 : unknown type (?) in freetr
       3 : regular expression too long
       4 : unknown type (?) in cfoll
       5 : unknown type (?) in first
       6 : can't open (?)
       7 : record `(?)' too long
       8 : record `(?)' has too many fields
       9 : record `(?)' has too many fields
      10 : built giant record `(?)...'
      11 : trying to access field (?)
      12 : can't open (?)
      13 : out of space in ALLOC
      14 : illegal statement (?)
      15 : unexpected break, continue or next
      16 : unexpected break, continue or next
      17 : unknown boolean operator (?)
      18 : unknown relational operator (?)
      19 : out of temporaries in gettemp
      20 : format item (?)... too long
      21 : not enough arguments in printf((?))
      22 : illegal arithmetic operator (?)
      23 : division by zero
      24 : division by zero
      25 : division by zero
      26 : division by zero
      27 : illegal assignment operator (?)
      28 : (?) is not an array


                            23
                    00210-01 33 01-4

      29 : illegal jump type (?)
      30 : illegal function type (?)
      31 : string (?) too long to print
      32 : too many output files (?)
      33 : can't open file (?)
      34 : out of space in makesymtab
      35 : symbol table overflow at (?)
      36 : can't set $0
      37 : can't set $0
      38 : illegal reference to array (?)
      39 : funny variable (?): (?) (?) (?) (?)
      40 : out of space in tostring on (?)

:
               
      .  ,    
      ,    0,   ,    -
        , '   "".







                            24
                    00210-01 33 01-4

:
      bas -   BASIC.

:
      bas [file]

:
       bas     -
          BASIC.       
       "file",         
          (,      
         BASIC). Bas   -
       :

      
       

                
      .      -
              
       .    -
      .     
       ,   .

       :

      
                  
              (   )  
            .    
             V;


                            25
                    00210-01 33 01-4

      comment ...
                ,     
               ;

      done       ;

      dump          
                ;

      edit     ed.       -
             ed   file.  -
                  -
            ,       file,
             .

      for  = V V 
      for  = V V
       
      next

             for     
              (  )   -
             (  ),  -
                     name.
                  
            ,         
                .    -
                  ,  
                .

      goto V


                            26
                    00210-01 33 01-4

              ,       ,
                 , 
                  .  
                .  
              ,    
               .

      if V 
      if V
       
      [ else
        ]
      fi

             ( )      
            (  ) ,   -
               .    
               .

      list [V [V]]
                   
            .    , 
             .     ,
                ,  
               .   
             ,     
            .

      print 
            ""    ,  


                            27
                    00210-01 33 01-4

              (  
              (")).  print    
                
             .

      prompt 
                  print,  
                    
               .

      return [V]
                 -
                   ,    
            .   , 
            .

      run    ,   
                . 
                     
            .

      save [V [V]]
              save       
            list,      ,   
            file.   bas    -
            ,   b.out   .

       :

      
                -


                            28
                    00210-01 33 01-4

             ,    -
             .       
                        
               .

             -
                  . 
                      
                 "e"   -
            . : 4, -15, 0.34, 1.2e+5.

      (V)        -
             .

      _V      .

      V  V
             .

      V( [V[, V]] )
                 . -
                  
             ,     .
                  -
            ,         
             (,   ).

       [ V[, V]]
             ,     ,  -
                .  
            a[1,2]    a[1][2]. 


                            29
                    00210-01 33 01-4

                 0  32767.

       :

      =     .     
                . 
              .

      & |    "" (&)    ,
             -       ,  
           ,       .  
             ""  (|)    , 
              ,   ,    -
                .

      < <= > >= <>
            :

           <     ;

           <=     ;

           >     ;

           >=     ;

           <>     ;
             -
       ,     .
            
        :   a>b>c,  -
         a>b&b>c;

                            30
                    00210-01 33 01-4

      + -    ;

      * /    ;

      ^      ;

       :

      arg(i)
              i-        
            ;

      exp(x)
              x;

      log(x)
               x;

      sqr(x)
               x;

      sin(x)
              x ();

      cos(x)
              x ();

      atn(x)
              x.    
             -J/2  J/2;

      rnd()   ,      
              0  1;

                            31
                    00210-01 33 01-4

      expr()
             .    -
                   .
                ;

      abs()  ;

      int(x)
             x  ;

:
      /tmp/btm*   
      b.out         
      /bin/ed    

:
             
      .








                            32
                    00210-01 33 01-4

:
      basename -      .

:
      basename  []

:
       basename     ""    ,
          "/",   "", 
         ,       -
        .     
          SHELL.

:
      m   ,            
      /usr/src/cmd/cat.c,     -
             cat    
      :

      cc $1
      mv a.out `basename $1 .c`

  :
      sh





                            33
                    00210-01 33 01-4

:
      bc -   BC.

:
      bc [-c] [-l] [...]

:
       bc     
        ,       C,
             -
        .     -
          .    -
          "",   ,   
      ,        BC.
            -
      .    "-l",   -
             . 
            BC,  -
        :

      B        "a"  "z";

      V     ;

      OP    .

:
           "/*"  
      "*/"

:

                            34
                    00210-01 33 01-4

       : B
       : B[V]
       "ibase", "obase"  "scale"

 :
        
      (     ).
      (V)
      sqrt(B)     
      length(B)     
      scale(B)   
      B(V,...,V)  

:
      + - * / % ^ (% - , ^ - )
      ++ --       (  ,
                   )
      == <= >= != < >
      = =+ =- =* =/ =% =^

:
      V
      {OP; ... ;OP}
      if(V) OP
      while(V) OP
      for(V;V;V) OP
       
      break
      quit

                            35
                    00210-01 33 01-4

 :
      define  B(B, ... ,B){
            auto B, ... ,B
            OP; ... OP
            return(B)
      }

         :
      s(x)    - ;
      c()    - ;
      e()    - ;
      l(x)    - ;
      a()    - ;
      j(n,x)  -  

           .

       ,  , -
      ,      -
      .        -
      ,      .  -
       scale    ,    
               dc.
        ibase    obase  
          .

                  
      ,        .
           . -
        "auto"        .


                            36
                    00210-01 33 01-4

                 
              -
      ,          
       .

      , :

      scale = 20
      define  e(x){
          auto a,b,c,i,s
          a = 1
          b = 1
          s = 1
          for(i=1; i==1; i++){
             a = a*x
             b = b*i
             c = a/b
             if(c == 0) return(s)
             s = s+c
          }
      }
           -
        , 

      for(i=1; i <= 10; i++) e(i)

           
         .

       bc     

                            37
                    00210-01 33 01-4

       dc,   ,   -
        "-c" ( ).   
            dc,   
       .

:
      /usr/lib/lib.b    

  :
      dc

         bc.

:
        &&, ||  !.   for  
         .  quit  
      ,    .







                            38
                    00210-01 33 01-4

:
      cal -  

:
      cal [] 

:
       cal       .  
         ,     
      . ""      1  9999. "-
      "    1  12.

:
             
        : "     2 -
       1928 ?"     ,  
             
      .

       : "cal 78"     -
       ,    XX .





                            39
                    00210-01 33 01-4

:
      calendar - "" 

:
      calendar [-]

:
       calendar   "calendar"  -
           ,  -
         .       
      :  ".", , "12/7",   "7 -
      "  "7/12".     ""  -
        .

         "-",  calendar -
             , -
                   
      "calendar",    ,   ,
        mail.           
         cron.

:
      calendar          
      /usr/lib/calendar   
      /etc/passwd
      /tmp/cal*          
      : egrep, sed, mail

  :
      at, cron, mail

                            40
                    00210-01 33 01-4

:
        ""   calendar   -
        ,   .













                            41
                    00210-01 33 01-4

:
      cat -   .

:
      cat [-] [-u] ...

:
       cat    ""  
             . ,
      :

      cat file

        ,  

      cat file1 file2 > file3

      '           
       .

              "-",  -
          .  -
        "-u"        
        cat .

  :
      pr, cp

:
             "cat a b
      > a"  "cat" a b > b",    
       .

                            42
                    00210-01 33 01-4

:
      cb -  -

:
      cb

:
       cb     C-    -
               -
        ,   .











                            43
                    00210-01 33 01-4

:
      cc -     

:
      cc []... ...

:
       cc      -
       .     .

      ,     ".c", -
            . -
         '       ,
             -
          ".c"    ".o".    ".o"
      ,   -   -
         .

       ,     ".s",
             
      ,         
      ".o".

        cc    :

      -c                
            '    ,  
              ;

      -f      ,       FPP-
            .          

                            44
                    00210-01 33 01-4

                  -
              FPP-;

      -p      .  
               , 
                monitor (2) 
                  mon.out  
              ' . 
                     
              prof;

      -d           
             "cdeb";

      -O       ' ;

      -S      -   -
                       
                     
            ".s";

      -e         -
             -     
             .     -
              "cc"   
             "sed"    :  "s/^#
            /# line/";

      -a         "cpp".  
            ,       -
             ;


                            45
                    00210-01 33 01-4

      -P     ,     ".c" -
                    "cpp",
                     
                    ".i", 
                 "#line ...";

      -C      "cpp"   
               .  -C  
            ,     
            "xstr"  "lint";

      -o 
                  
            "".         ,  
            "a.out"   .

      -D=
      -D

              ""  , 
               "#define".    -
            ,     "1";

      -U         
            ;

      -I   "#include",    
              "/",     -
             ,      "",
                -I,   -  -
              ;


                            46
                    00210-01 33 01-4

      -B 
                   -
             ""   ccp, c0, c1  c2. 
            "" ,      -
             ;

      -t[p012]
                  ,
                    
            -B.    -B  -
             "": "/usr/c/".

      -T[al]
             (  "a")   
            ("l")      ""  -
              .

              
      ,     ' ,
            -
       cc,      .
       ,      -
          (   ),   -
           a.out.

:
      .c          
      .o         ' 
      a.out           
      /tmp/ctm?      


                            47
                    00210-01 33 01-4

      /lib/cpp       
      /lib/c0         0 
      /lib/c1         1 
      /lib/fc1       1    "-f"
      /usr/c/oc[01]   
      /usr/c/ocpp     
      /lib/c2         
      /lib/crt0.o     
      /lib/mcrt0.o     
      /lib/lib[a].a  
      /usr/include     
                    "#include".
      /lib/fcrt0.0      "-f"

  :
      cdeb, prof, adb, ld

          .

:
       ,   -
        ,    .  
           
       .




                            48
                    00210-01 33 01-4

:
      ccat -    .

:
      ccat [ ...]

:
       ccat   , ""   -
        compact.   .

:
        ,      ,  
      ..

  :
      compact, uncompact








                            49
                    00210-01 33 01-4

:
      cd -   

:
      cd dirname

:
       cd     "dirname"   -
            .  
                
      "dirname"          
      .

                
        ,  cd   , 
            .   
           -
       SHELL  CSHELL.

  :
      csh, sh, pwd, chdir.





                            50
                    00210-01 33 01-4

:
      chmod -   

:
      chmod   ...

:
               
           "", 
            .  
                
      ,    ""   -
      :

      4000         -
            ;

      2000        -
               ;

      1000     ;

      0400      ;

      0200      ;

      0100      (    )
            ;

      0070   , ,    ()
            ;

      0007    ,  ,    


                            51
                    00210-01 33 01-4

            .

        ""   :

      []   [ ] ...

       ""     "u" (
        ), "g" (), "o" ().
       "a"   "ugo".      ""
      ,     "a", 
                 (.
      umask).

       ""    "+" -   -
           , "-" -   -
        "="     
      (    ).

      ""     -
        "r" (), "w" (), "x" (),
      "s" (    -
      )    "t"  (      ).
           
        "="    .

:
              
      "" ,     
      .

      chmod o-w 

                            52
                    00210-01 33 01-4

      chmod +x 

 :
      ls, chown, stat, umask.

:
              ,
        .    
      .  "s"        
        "u"  "g".

         (  -)  
        .









                            53
                    00210-01 33 01-4

:
      clear -   .

:
      clear

:
       clear   ,    -
              
         (/etc/termcap).

:
      /etc/termcap       -
                     .










                            54
                    00210-01 33 01-4

:
      cmp -   .

:
      cmp [-l] [-s] 1 2

:
            .  (   
      "1"      "-",   -
        ).    cmp  -
         ,   , -
          ,    -
      ,   .     
       ,   .

      -l       ()  
             ()   ;

      -s            ,
              .

 :
      diff, comm

:
        ,    0    
      ,  1     2  
        .



                            55
                    00210-01 33 01-4

:
      col -    .

:
      col [-bfx]

:
       col      
           .   -
        ,       
        (ESC-7   -8)     -
          (ESC-8    ESC-9).  
      col       
      ,   ".rt"   pif    ,
            
      tbl.

        col     
       ,       . 
       ,      ,
              .
            -f (). 
          col      
        ,    -    
        .

         -b, col ,  
                
      .   ,     -
               ,   


                            56
                    00210-01 33 01-4

        .

        SI (017   -8)   SO  (016)
             -
       .   (  -
      ),       -
      , .    SI  SO  -
         ,   
        .

       col      -
      ,     .   
      -x,   .

             ,
           (SP-040),  
       (BS-010),    (HT-011),    
      (CR-015),      (LF-012),   
         ESC-7, ESC-8, ESC-9, SI, SO.   -
         .

 :
      pif, tbl, greek

:
         ,   128 .

             800  ,  
         .


                            57
                    00210-01 33 01-4

:
      colcrt -      pif.

:
      colcrt [-] [-2] [ ...]

:
       colcrt      
               
             ,
                
                 -
           .     
        (   "-")  -
                
      .

        "-"    -
      .           
         tbl.

       -2       -
      ,      .  -
          , -
              .  
             -
          .   -2    
      ,        
      ,      .

                            58
                    00210-01 33 01-4

         colcrt :

      tbl exum2.n | pif -ms | colcrt - | more

 :
      pif, col, more, ul.

:
           102 .

                 -
           .  -
      ,    "|"    "-"   -
        "+".

         132 .

               
           , -
          .







                            59
                    00210-01 33 01-4

 :
      colrm -   .

:
      colrm [ []]

:
       colrm          .
                 
             -
      .

            ,   
          ,   
      .    ,   
               .
           1.

 :
      expand


               
       .





                            60
                    00210-01 33 01-4

:
      comm -  ()   .

:
      comm [-[123]] 1 2

:
       comm   "1"  "2",  -
              -
        -8,      
      :  ,       "1", ,
         "2"   ,      
      .    "-"    
       .

        1,  2    3      
      .    ,  "comm -12" 
       ,    . "Comm -23"  -
        ,     , 
         ,   "comm -123"  -
        .

 :
      cmp, diff, uniq




                            61
                    00210-01 33 01-4

:
      compact -  

:
      compact [ ...]

:
        compact      .
          ,  -
      ,     ,  -
               .  
        ,    
            .   
            ,  -
            .  -
              -
      ,         (compact)    
      (uncompact)         -
           .  , compact 
      uncompact          .   
      ,

       ... | compact | uncompact | ...

          ,    
       .

         "",     -
               ".C", ""
      .         (".C")

                            62
                    00210-01 33 01-4

      ,      .   
         .

                
      .     :

      38% ;

      43%    ;

      36%     ;

      19%  .

           ,  -
        .

:
                
      13-  ,       
      ".C".    (  ) .

:
       compact    .    
          ,     , 
      ..

:
          ".C".    
       (    ).

 :
      uncompact, ccat


                            63
                    00210-01 33 01-4

:
      convert -   '        
              a.out

:
      convert [-e] 1 2

:
       convert      '
        "1"      '  -
        "2".

      -e         -
                -8    -
                 ESD.    ,  
            ,    .

 :
      a.out

:
      1.      "2"   .
                .

      2.         DSECT
              DXD.

      3.          -
              WXTRN.

      4.      '  SYM.

                            64
                    00210-01 33 01-4

      5.       .















                            65
                    00210-01 33 01-4

:
      cp -   .

:
      cp [-i] 1 2
      cp [-i]  ... 

:
      "1"   "2".  "2" ,
           ,    -
         .

             -
           ""   -
      .

       cp       -
       .

         -i       
           ,      
      .     ,
          "y",  cp  . 
              
       .

 :
      cat, pr, mv



                            66
                    00210-01 33 01-4

:
      crypt - /.

:
      crypt []

:
        crypt        
              . -
       ""    ,    
          .  "" 
      ,  crypt       ,
               
      .   crypt         
       (1):

      crypt 1 < >

      crypt 1 < | pr

          ,  ,  
       .

      ,      crypt,    
       ,     ed  
      .

            :

      1)             
            ;

                            67
                    00210-01 33 01-4

      2)          
            ;

      3)     ,       
             ,   .

       crypt     -
         256- .    
       ,    .  ,
            -
       .

              
         . ,   -
      , ,     ,  
                
        .

            crypt,  
            , -
        ps   .   -
         crypt    -
          . ,    
               
      .

:
      /dev/tty    

 :
      ed, makekey


                            68
                    00210-01 33 01-4

:
      csh -         -
      .

:
      csh [-cefinstvVxX] [...]

:
       csh    -
          CSHELL,  ,     SHELL,
           , -
                -
      .

       csh    -
         ".cshrc"    -
      .  csh    -
           ,   
          ".login"     
      .     -
         ,    
        "%".         -
        ".logout"     
      .

       :

         CSHELL      .
            
      ,    ,   

                            69
                    00210-01 33 01-4

       .     
          ,         .
          ,   
         CSHELL,    -
      .       -
      .     "&",  "|",  ";",  "<",
      ">", "(", ")", "*"   .

          "#"   -
        .       
              
      .

      :

           
      ,      -   , 
          . -
          ,   "|",
           (  
            ).  ,
            (),  
          ";",    -
       .   ,  -
              "&", csh
              -
         .    
            ;  -
      ,          

                            70
                    00210-01 33 01-4

      "nohup".

       ,    (), -
          ,    
      .  "||"   "&&",      -
       ,  (    ), 
             -
       .

         :

      Csh   ,    -
           ,   
        .

               
       "!".      
       .  "!"      
      ,       "
              ,    ,
          , "="  "(".  
          ,    
        "^".

        ,   1. -
          csh   
       history.        
             -
      :

      !N     ;


                            71
                    00210-01 33 01-4

      !-n   n     ;

      !c      ;

      !?...?!
             "...",      
           ;

      !!      .

           ,  -
              ":"  
       .    ,
         0: 0 -   , 1 -  -
        ..   :

      0     ;

      n    n- ;

      ^     ;

      $     ;

      %    ,       (
           )  ?...?;

      -y   ;

      -y    "0-y";27

      *      ,    ("%-$");

      *     ,   n- ("-$");

                            72
                    00210-01 33 01-4

      -    ,  "*",     
           "$".

       ":"   ,    -
            "^", "$", "*", "-"  "%".
            
      .        
      ":".   :

      g          ;

      h        ,   ,
               ;

              ,    ;

      q          ,  -
                ;

      r         ,  
              ".";

      s/l/r   l  r.     
             "/"     . -
              l   r      
              "
                  l,    
               s  "!?s?".  
             r ,  l ;

      t            ,    
             ,   ;


                            73
                    00210-01 33 01-4

      x       ,   q,         
               ,     
              ;

      &        .

      Csh     
      .       "^-
      ^".

      :

         alias    unalias    csh
         ,   -
      ,   .  -
               
      ,          
      (  ),  ,    -
      .  ,  ,    -
          ,     
      history ,         
        .      
       .        
        .

       :

           -
               
        ,  -
       "$".


                            74
                    00210-01 33 01-4

        :

      $
      ${}

              .   
              ""    ,    
            .       
            20    ;

      $[]
      ${[]}

              ,   "-
            "     "";

      $#
      ${#}

              ,     -
            ;

      $0          .  
              ,  ;

      $
      ${}

             "$argv []";

      $*     "$argv [*]";

         ":"      

                            75
                    00210-01 33 01-4

       :

      $?
      ${?}

             "1",  "" ,  "0" -
              .

      $?0    "1",      -
            ,  "0" -   .

      $$       csh.

        :

          ,        
        `...`.    ,   -
              
        ,       
      ,       ,    
                "`". 
      ,       "...",    
             .  
       .

              -
          ,     -
       .

        :

            "*",  "?",  "[",

                            76
                    00210-01 33 01-4

      "{"       "^ ",      -
          .      
          ,      -
        ,   -
        .         
         ,  -
      .     :

      *        ,
              ;

      ?       ;

      [...]
                 .
             ,      "-",  -
                 -
            ;

      ~     ,   
            home;

      ~      
           "";

      [a,b,...,n]
                 .
                  "["  "]"  
                "

      a{b,c,d}e

                            77
                    00210-01 33 01-4

            "abe ace ade".  -
             .

           ".",    -
                 "/", 
        "/"         
       .

      /

         /  
      :

      <    ""    
             ;

      <<
                 ,  
              "".  -
                    
             ;

      >
      >!
      >&
      >&!

              ""    
              .     -
               .          
            noclobber,       , 

                            78
                    00210-01 33 01-4

             .   -
                -
              "!". ,   "&",  -
                  -
             ;

      >>
      >>&
      >>!
      >>&!

              ""    
             ;    
              "".     -
              noclobber,     ,  -
              ,       "!",
               .

              -
              "/dev/null".  
            . 
         "|&".

      :

            -
      ,    ,  
        ,       .    
           @, exit, if  while. -
        : "||", "&&", "|", "~",  "&",

                            79
                    00210-01 33 01-4

      "==",  "!=",  "<=",  ">=",  "<", ">", "<<", ">>", "+",
      "-", "*", "/", "%", "!", "^", "(", ")".

             -
      ;      
      :

            ==  !=
            <=  >=  <  >
            <<  >>
            +  -
            *  /  %

         "==", "!=",   
      ;        . 
       : 0 - "", 1 (    ,
          )  -  "".     
          .   -
             , 
              
      : "&", "|", "<", ">", "(", ")".

        csh     -
            .   : "=",
      "+=", "-=", "*=", "/=", "%=".

        "++"  "--"  -
         "" (, "@i++").

                -
        ,      


                            80
                    00210-01 33 01-4

      "{...}".

       csh         "-l
      ",  l    :

      r   ;
      w   ;
         ;
        ;
        ;
      z   ;
      f   ;
      d  .

            -
            .        
      ,    1 (),  
      - 0 ().

       :

           :

      foreach  ( ...)
         _
      end

             ""    
              "  ..."   "_-
            ".

      switch(  )


                            81
                    00210-01 33 01-4

            case :
               ...
               breaksw
            ...
            default:
               ...
               breaksw
      endsw

            ""      
            "".     , -
                  default.  
            breaksw    ,   -
              endsw.

      if( 1 ) then _1
      else if( 2 ) then _2
      else _3
      endif

                 (
              ),   "_1".  -
               "2":  
            ,  "_2"  ..

      while(  )
            ...
      end

             ,    "-

                            82
                    00210-01 33 01-4

            ".

         csh   (if, else 
      .)      .

       :

      alias
      alias 
      alias  _

                .  -
                    
            "".           "-
            _"   "".  "_"
                 .
               ""   "alias" 
            "unalias".

      alloc      ,
                ,  
               .

      break     end -
                  foreach  while.
                  
            break,     ,  
                .

      breaksw
                  switch,  

                            83
                    00210-01 33 01-4

              endsw.

      case :
            "" -     switch.

      cd
      cd 
      chdir
      chdir 

                 "".
               ,    -
              .

      continue
                 while
              foreach.      
            .

      default:
            ,       -
              switch.     
             case.

      echo _
                  
            .   "              .

      else
      end
      endif

                            84
                    00210-01 33 01-4

      endsw

               foreach, if, switch  
            while.

       
            ""   csh.  csh -
            .

      exit
      exit(  )

               csh     -
             status ( ),   -
               "" ( );

      glob _
                echo,  -
             ,      -
            ,    "

      goto 
                         .
                ,  
             .    -
             ":".

      hashstat
             , , -
                    
             .

                            85
                    00210-01 33 01-4

      history
               .

      if () 
                ,  -
              "".     .
               .

      login
      login 

              login   csh  -
               init   .
                 ""
               .       -
               .

      logout
              csh.   
            ignoreeof,      <CTRL/D> -
            .

      nice
      nice +
      nice 
      nice + 

                csh  
            4.       
             .     -
                4  "" .


                            86
                    00210-01 33 01-4

              "nice - ...",  -
                -
            .           
            csh.   .

      nohup
      nohup 

                 csh    
            .        
             nohup       
              ,      .  
                 
              "".   
            , nohup  .

      onintr
      onintr -
      onintr 

               csh    .  
                csh 
            ,     -
               csh    -
             .    -
                  .  
                  
              "goto ".

      rehash

                            87
                    00210-01 33 01-4

             - ,   -
            ,     path.

      repeat  
               ""  ""  .
                /  
             .

      set
      set 
      set =
      set []=
      set =(_)

                     
                csh. ,  
             ,        ,
               .   
             ""   .  
              ""  "". -
                   -
             ""  "".  
             ""   "_".

      setenv
      setenv  

                   
            ,   .

      shift


                            88
                    00210-01 33 01-4

      shift 

              argv  ,  
            argv[1]  (    ) .
                   
              ,      . 
                   -
             "".

      source 
            Csh       "".  a
            source    .  -
              ,     -
              .     source  
                 
             source.  ,   -
               source   
              .

      time
      time 

                , -
                csh   -
            .    ,    ,
              "".

      umask
      umask 

                 (  )


                            89
                    00210-01 33 01-4

                  
            ( ).        
             .   -
               022 ( ), -
                   
                     
            ,  002,   ,
              ,     
               ;

      unalias 
             ,    -
              ,  . ,
             "unalias *"   . 
               ,    -
            .     -
               .

      unhash
              -   -
               .

      unset 
             ,    -
              ,  .  , -
             "unset *"   ,  -
                set.   -
                    
            .

                            90
                    00210-01 33 01-4

      wait       .
                   
                wait.   csh
                   -
            .

      @
      @=
      @[]=

                   -
              csh.     
            ""  "".   
                "<", ">", "&"  "|",  
                     (...).
               ""  -
             ""  "". ""    
                  ""  -
            .

       :

      argv     csh.   -
                 (-
            , "$1"   "$argv[1]").

      child  .    -
              .     
              (unset).

      echo  ,      -


                            91
                    00210-01 33 01-4

              "-".    
                .   -
               .

      history
                 .
                   -
               .   -  22
            .

      home          
            .

      ignoreeof
               csh   -
              " " <CTRL/D>.

      mail    ,     -
              csh     -
              .

      noclobber
                 -
                 
               ">>".

      noglob
               .

      nonomatch
                   

                            92
                    00210-01 33 01-4

                ,   
                .
            ,     (,
            " ["),   .

      path         
             .

      prompt
             -  
              .       
             "!",      
            "
               "%" -  -
               "#" -  .

      shell      (-
                "x")      "#",  
              csh.   "#"
              -    sh.  
            shell  ,    
             csh.

      status
                 (0 -
                 , 1 -  -
            ).

      time   ,    -
               .

                            93
                    00210-01 33 01-4

      verbose
              "-v"   -
                  .

       CSH:

      -c        , -
                     "-c".     
                argv;

      -e      csh,     -
                   -
                ;

      -f       ".cshrc"   
                csh;

      -i            -
            ;

      -n            
            ;

      -s            
             ;

      -t              
            .            
               "

      -v       verbose,  -
                 


                            94
                    00210-01 33 01-4

              ;

      -V       verbose   -
              ".cshrc";

      -x         ;

      -X      "-x"    
            ".cshrc".

       :

            
      (quit).  ,    , 
         (interrupt)  .  
           , 
        .    csh    
         onintr. ,
           -
          ,     
      (terminate);         
             -
      .        ".logout",  
        .

:
      ^/.cshrc     csh  
                .
      ^/.login     csh  ".cshrc"
                 .
      ^/.logout    csh  .


                            95
                    00210-01 33 01-4

      /bin/sh      shell  
                ,    
                "#".
      /tmp/sh*       "<<".
      /dev/null      .
      /etc/passwd   
                "^".

:
          ,   512  .  -
                  .
         512  5120 .  
       ,    ,
       1/6-  ,   
      .     -
           ,  
          .   
      csh      
         20-.

 :
      sh, environ.

:
          
      ,          
      .          ,
      '    "|",   
        "&"  ";".

                            96
                    00210-01 33 01-4

      ,       "?",
           .

           -
        ":"    .  -
       "$"     
      ":".

            -
        status,        , 
         .   0200
        status    -
        .

             -
          ,   -
           ,      -
        ,    -
      .   /     
        ,        
      .





                            97
                    00210-01 33 01-4

:
      ctags -       

:
      ctags [-auw]  ...

:
       ctags     (    
      tags)     ,   
      .       -
         ' (   - )
        .      :
       ,   (   ), -
       ,     -
        .       
              -
      .

            :

      -a      ,       
             tags;

      -x       ctags     
            ,       , 
                   
            .       
            ;

      -v           -
                   (,


                            98
                    00210-01 33 01-4

               64 );

      -u             
            ,  ..       ,  
               . -
               "-a";

      -w      .

          (main)    
      .       -
       ,     "M" 
           ".c",   ,
          o  . 
         ctags    , 
       .

:
      tags    .







                            99
                    00210-01 33 01-4

:
      date -   .

 :
      date

:
             .  
      ""        , "" - ,
      "" - , "" -  ( 24- ),  -
       ""  .


 :
      utmp









                           100
                    00210-01 33 01-4

:
      dc -  .

:
      dc []

:
           
         .   
         ,      
             -
         .    -
        dc    -
       (    ).  
        ,        
       (  ,    ),     -
            .  
      :

                  .   
                  0-9.
                   
            "_",          
            .     ;

      + - / * % ^
                 (+), -
             (-),  (*),  (/), -
              (%)       
            (^).        ;


                           101
                    00210-01 33 01-4

                  .  -
                 ;

      sx            -
                  "x",    "x" 
              .    S  -
            ,  "x"    ,   
              ;

      lx      "x"   .  -
              "x"  .  -
               .   L  -
            ,   "x"   , 
                  ;

      d        ;

      p        .  
               . "P" 
                 -8, 
               ;

      f       ,   -
               ;

      q        .   
                 . 
             Q ,     
                  
              ;

                           102
                    00210-01 33 01-4

      x            
                   dc;

      X            
            ;

      [...]    -8     -
             ;

      <x >x =x
                  -
            .      -
            ,   "x";

      v             
            .        
            ,     -
            ;

      !            -
              ;

      c         ;

      i          -
                    
            .   I        
             ;

      o          -
                    
            .  O     -


                           103
                    00210-01 33 01-4

             ;

      k        ,   -
                 -
             :   -
                    
            ,     .  -
              ,  -
                    ,
                ;

      z         .  Z -
                  ;

      ?        ( )   
              ;

      ; :     bc    -
            .

 :
      bc -     dc,    
           ,  -
             
       .

         dc.

:
      "x is unimplemented" ("x    "),    x  -
       .

                           104
                    00210-01 33 01-4

      "stack empty" (" "),    
          .

      "out of space" ("   "),    
         (  ).

      "out of headers" ("  "),   -
          .

      "out of pushdown"  ("  "),      
        .

      "Nesting Depth"  ("  "),    
         .










                           105
                    00210-01 33 01-4

:
      dcon - 

:
      dcon  [   ]

:
      Dcon   .    
         ,    -
       . ,     
      "",      ( -
             
        (,   ).

      " " - ,      -
       .    , -
           ,    
          .      
       , dcon   ,    
          .

            -
          dcon.    dcon 
           .    ,
         ,  :

      source_name
             - (source_name),  -
              ;

      ;r0...;r15


                           106
                    00210-01 33 01-4

               0  15;

      ;fr0...;fr6
                      
             0,2,4,6;

      local_name
             ,   "#";

      number
            ,   ,    
              ""   (n, n,
            Oxn);

      .       ""   -
            ;

      ..      ;

      $      ;

      expr    ,     
            "//"   ;

      name=expr
            '   expr;

      function:variable
                  (variable)  
             (function);

      *expr    expr;

                           107
                    00210-01 33 01-4

      enter(name)
              ;

      exit(name)
              ;

       ,   , -
          .   -
        :    
      .

           :

      -b      ;

      -h      ;

      -w      ;

      -l       ;

      -a       .

       :

      -d      ;

      -o      ;

      -x      ;

      -c      ;

      -s       ( );

                           108
                    00210-01 33 01-4

      -i      ;

      -ix     i  x;

      -v     ,       -
            .

          :

      (new-line)
             ".+ ";

      expr1,expr2[print-option]
                expr1  expr2;

      +expr[print-option]
             ".+";

      -expr[print-option]
             ".-";

      ?[print-option]
             "" ;

      *[print-option]
             '*';

      ;psw[print-option]
             psw;

      !-command
                shell;

      {command_list}


                           109
                    00210-01 33 01-4

             ;

      ;if(expr)command
                , command
            ;

      ;bp expr[command_command][/*comment]
               ;

      ;macro name(arg)command
               , -
            ,    ,   
             (arg);

      ;go [arg1 arg2...]
              ,  -
             ;

      ;cont [expr]
               (expr);

      ;brks    ;

      ;clr [expr]
                ;

      ;quit   (  );

      ;do file
                "file";

      ;out [file]
                "file";


                           110
                    00210-01 33 01-4

      ;save [expr][/*comment]
                e  .
               ,  
             . ,  ,  ,
                 file.cmt.

      ;rst [expr]
               expr    -
                dcon.  expr  -
            ,   ;

      ;copy file
             ;save     
              file;

      ;ss [n[command]]
               ,    "n"  -  ,
                .








                           111
                    00210-01 33 01-4

:
      dd -    .

:
      dd [ = ] ...

:
       dd        
           .  -
                 -
        .      
        ,    -
        -.

                         

      if=     (    -  
           ).

      of=    (    -  
           ).

      ibs=n
                n 
          .

      obs=n
                    n
           .

      bs=n
                ,    


                           112
                    00210-01 33 01-4

            ,   ibs  obs.  -
          ,      (  
           ).

      cbs=n
            .

      skip=n
           n     -
          .

      files=n
           n      -
          .

      seek=n
           n         
           .

      count=n
            n  .

      conv=ascii
                 -8.

      conv=ebcdic
              -8   .

      conv=ibm
                -8   
          .

                           113
                    00210-01 33 01-4

      conv=lcase
               .

      conv=ucase
               .

      conv=swab
             .

      conv=noerror
                   
          .

      conv=sync
                ibs.

      conv=...,...
           ,  .

      ,   ,  
        .     "k",
      "b"  "w",     1024,4096  2
      .    
         "x".

       "cbs=n"   ,   -
         ascii  ebcdic.   
      cbs     , -
          -8      
             
         .    -

                           114
                    00210-01 33 01-4

       -8    ,  -
            ,  -
          cbs.

        dd       -
          .

:
          ,  -
         80-     ,
          x:

      dd if=/dev/mt580 of= ibs=800 cbs=80 conv=ascii,lcase

          
           (rmt).  dd 
         -,  
            
      .

 :
      cp, tr

:
      "f+p records in (out)" ("f+p    (-
      )"):        (-
      ) .

:
            -
            -8.   


                           115
                    00210-01 33 01-4

         .       
       .














                           116
                    00210-01 33 01-4

:
      ddutok -    "u-cod" .

:
      ddutok  ...

 :
        ddutok      
      ""      "u-cod"      
       .      ,  
      ,       -
          .

      "u-cod" -   ,  
      -8  ,      ,
             0340,    -
      0300.

 :
      dd






                           117
                    00210-01 33 01-4


      demsend -     .


      demsend         
        pl/1.       
                -
           -
               
      .         
             
      vmread.     dsend -
         R   EXEC      
          vmread:

      /modes; userid; destfile.

      

      modes    vmread;

      userid
               

      destfile
              

                
        demsend:

      //name job ...

                           118
                    00210-01 33 01-4

      //*route punch mode.dem

      //senddem exec pgm=demsend,parm='/s;petr1;blah'

      //steplib dd dsn=engtools.public.load,disp=shr

      //in dd dsn=petr1.test.blah,disp=old,dcb=(...)

      //out dd dcb=(recfm=fb,lrecl=80,blksize=80),

      // sysout=b

           demsend  
            demsend module 
        demsend exec,  -
         .

 
      vmread, send







                           119
                    00210-01 33 01-4

:
      deroff -   pif, troff, tbl  eqn.

:
      deroff [-w]  ...

:
       deroff      -
             pif, troff,  
        ,  ,  
      eqn  (  ".eq"  ".en"   -
      ),    ,   
           .  deroff  
               (   ".so"    
      ".nx").E     , ".so" ,
       ".nx"  .        
      ,  deroff       
       .

         "-w",    
      ,    "" ( ,   -
      ,  ;  )  -
      ,       .  
         ,   -
        .

 :
      pif, eqn, tbl

:

                           120
                    00210-01 33 01-4

       deroff     pif,
           
       .      -
      ,     .














                           121
                    00210-01 33 01-4

:
      diff -    .

:
      diff [-l] [-r] [-s] [-cefh] [-b] 1 2
      diff [-cefh] [-b] 1 2
      diff [-d] [-b] 1 2

:
          ,  diff  -
              (-
          )    -
           .  
           
           ,  -
       .    , -
             .  
          :

      -l    "  " -    
                 pr.O  
                   -
                ;

      -r     diff        
               ;

      -s         ;

      -sname
                 


                           122
                    00210-01 33 01-4

             name.

       diff ,      -
            ,    .  
      "1" ("2")  "-",  
       .       -
      ,      ,  
             "2" ("1"). -
           :

         n1 a n3, n4
         n1, n2 d n3
         n1, n2  n3, n4

          ed   -
        "1"   "2".     
       "2".   ,  "a"  "d"   -
           ,   -
      ,   "2"  "1".    ed,
       ,   n1=n2  n3=n4 
        .

             
         ,  "<",    -
         ,  ">".

       "-b"     -
           ,    ,  -
            -
      .

                           123
                    00210-01 33 01-4

          :

      -e         a, c   d  
              ed,      "2"  
            "1".    
                  "-"  -
               .   
                 ($1)  -
               ed      -
                ,    ed ($2, &3,
            ...).  "  "      -
              :

              (shift; cat $*; echo '1,$p') ! ed -$1 ;

      -f       "-e",  -
              ed,    ;

      -c     ,   
            .          
                .   -
                . 
               "-c10",   10 
                10     -
            .  ,   "-c"   
                  . -
                    
            "**********". ,  1,-
              "-".,   -
            2, "+".    "!";


                           124
                    00210-01 33 01-4

      -D
              '      (1  
            2),      -
                  
            .      ""   
              .  ,    
            ax file1  file2  :

            long int k=1000000 /*   file1 */
            int k=1000000 /*   file2 */
            :
            diff -DLONGINT file1 file2

                 ,  -
                   
            :

            #ifndef LONGINT
            long int k=1000000 /*   file1 */
            #else
            int k=1000000 /*   file2 */
            #endif

      -h         .   -
                ,   -
                   , 
                . 
             "-h"    "-e"  "-f".

         , diff  

                           125
                    00210-01 33 01-4

         .

:
      /tmp/d?????
      /usr/lib/diffh    "-h".

 :
      cmp, comm, ed

:
        :

      0 -   ;

      1 -   ;

      2 -    .

:
       ,     "-e"  
      "-f",   ,    ".".







                           126
                    00210-01 33 01-4

:
      diff3 -   .

:
      diff3 [-3] 1 2 3

:
       diff3        
        ,  
      :

      ====     ;

      ====1  "1";

      ====2  "2";

      ====3  "3".

       ,     -
        ,     -
      :

      f:n1 a
                    -
             n1   "f",  f=1, 2  3.

      f:n1,n2 c
                     
            n1    n2.  n1=n2,   
              n1.

             


                           127
                    00210-01 33 01-4

        "c".      ,
            .

       o "-e" diff3      -
       ed,    "1"   
       "2"   "3",  ..  ,  
              "===="  "====3". 
      "-x"  ("-3")          
        ,  "====" ("====3"). -
                 -
        (script)   "1":

      (cat script; echo '1,$p') | ed - 1

:
      /tmp/d3?????
      /usr/lib/diff3

 :
      diff

:
       ,    ".",  
      "-e".

      ,    64K ,   -
      .




                           128
                    00210-01 33 01-4

:
      du -     .

:
      du [-s] [-a] [...]

:
       du   ,    -
         (),  
             "".  
      "" ,  ".".

       "-s"       .  
      "-a"         . 
                
      .

      ,        ,
         .

:
               
        "-a",    .

              
        ,  du    
       .




                           129
                    00210-01 33 01-4

:
       -   

:
      

:
             -
             '.  
          $x- .











                           130
                    00210-01 33 01-4

:
      echo -  .

:
      echo  [-n] [] ...

:
       echo     ,  
             , 
        .     "-n",
            .

       echo      
             -
          .   -
            -
       :

      echo " " 1>&2







                           131
                    00210-01 33 01-4

:
      ed -   .

:
      ed [-] [-] []

:
       UNIX- , ed    -
       .     
         ,   
         (,  ).

       ed        .
              
        ,      "w" ().
             
      ,  "".

         "",    
           .  -
        "-",     
      "x"      .  "-" -
            
                
      .

        ed     -
      : 0   "",   -
        " " , ,  -
      .  ""      

                           132
                    00210-01 33 01-4

      .     .

         ed       
        (        
       ),      (..
           ). 
              .
            ,  
         -     ( 
        ).

        ed      -
        " ".   -
         . ,    
            -
      .      
        ""    ,  
        :

      1)    ,      -
           ,   .  -
               ,
            "[." ,  "^*$";

      2)   "."    ;

      3)   "
              "()",   ;

      4)      "s",      
            ([s]  [^s]),   -


                           133
                    00210-01 33 01-4

           , (   )      "s".
             "s"  "
            ,  "]"      -
               .  "a-b",  "a" 
           "b"        -
                    (
                  -8),
               "a"  "b", -
           ;

      5)      1-4,   
           "*",    0  
              ;

      6)     "x",    "
            ")",   ,   "x";

      7)    "
              ,      -
            ,   n- "

      8)     "x"    1-8,    
               "y"  1-7, -
              "x",   -
               "y",   
           "x"    ,  -
              "y";

      9)        1-8,    -
             "^" (    "$"), -

                           134
                    00210-01 33 01-4

            ,    (
             )  ;

      10)        1-9    
                 ;

      11)         
             .

             -
       ,      (s)  -
        ,   .   -
              
          ,    
         "
      ,    ( "/"), 
          "

            ed -
          ,      
       " ".    ,  
          , -
        ,     -
                  
      .    .

      1)    "."   ;

      2)    "$"    ;

      3)     "n"  n-  ;

                           135
                    00210-01 33 01-4

      4)   "/x"  ,   "x", -
                     .
                "k",  
            ;

      5)    ,     "/",
             ,    -
                    ,
                ,  -
                .  
                
              ;

      6)    ,    -
             "?",  ,  -
                       
            ,   -
           ,     -
           .      
                ;

      7)   ,     "+"   "-" 
            ,     (
           )      .    
             ;

      8)        "+"   "-",  -
                   
            . , "-5"  ".-5".

                           136
                    00210-01 33 01-4

      9)       "+"    "-",  
                 (   )   1.  
                 8,    "-"
              ,   
           .  ,  "+"  "-"   -
              ,   "--" 
               2.

      10)   "^"     "-".

          ,     -
      .  ,     , -
          .    ,  
            ,  
       ,      .
            ,  ,
            (  -
        ,  ).

              -
        ",".       
      ";".      "."  
          ,   -
      .        -
             -
       ("/", "?").      -
          , -
        ,    .

            ed  


                           137
                    00210-01 33 01-4

            .    
      ,     ,   ,
          .

        ,        -
             . -
      ,        
      "p"  "l",     -
           .
             "n", -
                .
         '   .

      (.)a
      <>
      .

              -      
                   .
            "."     ,  
              ,     -  
            .         "0",
                  .

      (.,.)c
      <>
      .

                ,  
                ,   


                           138
                    00210-01 33 01-4

            . "."      -
            ;    ,    ,
              .

      (...) d
                    
            .   , 
                  .
                 , -
                 .

      e _
                  
                    
                . "."  -
                 .  -
              . "_" -
                   
                  
            r  w.  "_" , -
              .

      E _
                 ,    -
              "e",   ,   
             ,   
                  "w".

      f _
                 


                           139
                    00210-01 33 01-4

                   .      
            "_",     -
              "_".

      (1,$) g/ / 
                       
            ,    -
             .         
                 , -
             "."        
            .         
                 ,    -
              "g".   ,   -
              ,      
            "
              "a", "i" "c"    
            .  ".",   ,  
            ,        
             .  "g"  "v"   
             .

      (.)i
      <>
      .

                  -
              . "."    -
              ,   ,     -
              .      -

                           140
                    00210-01 33 01-4

               ,   .

      (.,.+1)j
              '      
            .     -
             . "."    -
            .

      (.)kh         
                "",      
              .      
                  "'".

      (.,.)l
                 -
             :   
                ,    
            .    "l"   
                     
            - .

      (.,.)ma
                 
                 ,   
            "a".      
             .

      (.,.)n
                -
                    

                           141
                    00210-01 33 01-4

            .

      (.,.)p
                . "."
                      .
             p         
                  -
            .

      (.,.)P
                 "p".

      q             ed.
                 .

      Q         "q",   -
             ,     -
            ,      
               "w".

      ($)r _
                   -
                .  
              ,     
            ,      (.  "l" 
            "f").   ,      
              .   "r" -
              "0",     ,  
                 .  -
              ,     -

                           142
                    00210-01 33 01-4

              .  "."    -
               .

      (.,.)s/ // 
      (.,.)s/ //g

                -
                    
             .    
                  "g",  
            ,     ,  
                -
                "".    
                ,  
               
            .        
               ,   .
                    
             "/"        
            . "."    , 
                .      "&",
               ,   -
            ,      .
                  "&"   
                 -
                "
             ,  n-  -
              ,      " 
            ")".          


                           143
                    00210-01 33 01-4

            , "n"    
             "  .    
                     
              .       
                   
                "
                  ,
              "p".    -
             "s"    
                    
            .   "s"    "r" (-
                     
                   -
               ), "p" ( 
              "p"   )  g (-
               "g").   
            '   .

      (.,.)t a
                 "m",  
             ,     -
               "a"  (    
            0). "."     .

      (.,.)u
                   ,
               ,    
               . 
               . -


                           144
                    00210-01 33 01-4

            ,  ,  "a, c, d, g,
            i, k  v".   "g"  "v" -
                 .
                      
               .     ed  
             ,   ,
              "u"     
                   . 
                   
               ,  ed 
              "-".

      (1,$)v/ / 
                "g",   -
             ,      -
              "."        
            ,      -
            .

      (1,$)w _
                    
             .    ,  -
            .   ,    
              .     ,
                 ,    
              (.   ""  "f").  "."
             .      
            ,    -
            .


                           145
                    00210-01 33 01-4

      (1,$)W _
                "w",   -
              ,      
            .

      (1,$)WQ _
                "w",   -
              ,       "q",
                   
            .

      x              
            .      "r",  "e"   "w"
                  -
                "crypt",    .
                .

      (.+1)z
      
      (.+1)zn

                   ,
                  .  22
            ( "n",  ) .   -
                . -
              "n"  ,  ..    
                "z".

      ($)=           
            .      ".".

                           146
                    00210-01 33 01-4

      !<   >
               "!"  sh   -
               .  "."  -
            .

      (.+1,.+1) < >
                  -
               .      
            ".+1".      .  
               ,    
            ,  ed   -
              .      -
            ,   .

         ,  ed -
        "?interrupted"  ("?")     -
       .

        : 512    -
      ,  256        "g", 64
         .    
          :   
      2 .

         ed   nul  -8
             .

:
      /tmp/e*
      edhup

                           147
                    00210-01 33 01-4

            -
       .

 :
      sed, crypt

:
      "?name"    .
      "?"        .

              
      "q"    ""  ,   
            "w". -
        "q"  ""  .

:
        "l"        "del"
      ("").

                   
       .






                           148
                    00210-01 33 01-4

:
      expand, unexpand -  ()  -
      .

:
      expand [-] [-1, 2, ..., N] [ ... ]
      unexpand [-a] [ ... ]

:
       expand      -
              ,
          .  
               -
                .  
      expand      -
       ,    ( -
      ,     ..).

          "",  -
             ""  
         8.    
        ,   -
         .

       unexpand    
          ,     -
         (   )    
      .    "-a",   -
       ,  .     unexpand
            .


                           149
                    00210-01 33 01-4

:
      expr -    .

:
      expr  ...

:
         .   -
                .
            -
      .

      O   .     -
         .O  -
        :

       ! 
               "",    -
                  "0",    
             ;

       & 
                    
            "0",    ,   -
              "0";

        
            ""       -
              <,  <=, =, !=, >=, >.  "1", 
              ,  "0",    -
            .     , -


                           150
                    00210-01 33 01-4

               ,      
            ;

       + 
       - 

               ;

       * 
       / 
       % 

            ,      -
             ;

       : 
                ,      
              ,    , -
               .   -
                ,    ed.
              .)     -
               .   -
                ,  -
              ("0",   );

      (  )
              .

:
        "1"  A    -
      :

                           151
                    00210-01 33 01-4

            A=`expr $A + 1`

          ( )  -
          ,     A, 
           "/":

            expr $A : '.*/)' '|' $A

              ,
          expr,   
        ,   .

 :
      ed, sh, test

:
       expr    :

      0 -        "0";

      1 -     "0";

      2 -   .





                           152
                    00210-01 33 01-4

:
      f77 -    -77.

:
      f77 [] ...  ...

:
       f77          
      -77.    :

      -     ,      ".f",
                        
            -77.O ,   '
                 
             ,     -
                ".f"  ".o";

      -     ,       ".r"
              ".e",       
             RATFOR  EFL .O  
               , 
                f77;

      -     , ,    -
              ".c"  ".s",   -
                 .O  -
              ,   ".o".

             ,   
        cc.  ,   
        ld:


                           153
                    00210-01 33 01-4

      -c         ".o"   -
              ;

      -d           
              '    -
             cdebug.

      -p     '     
            (.  prof);

      -O      ' ;

      -S           
                    
             ".s". ( ".o"  );

      -f          ,
              ,     ,
                  
             .

      -o 
                  ld
             ""  "a.out";

           f77:

      -onetrip
              do, ,   -
            ,         . (
            -77  do   , 
              ,  );


                           154
                    00210-01 33 01-4

      -u            
            "undefined"       
              ;

      -w       .  
                  "-w66",  
               -
                -66.  "-wki" -
                      
              ;

      -U          
                   . 
            "-U"  ,    
                    .
                    -
             ;

      -O<>
                     -
               .  -
              "-O". <>      -
            : 1  2;

      -I2 -I4 -Is
                   :  
            "-I2"    "integer" 
            "integer*2", "-I4" - "integer*4".    
               "-I4" (   -
                  "integer"     "real"


                           155
                    00210-01 33 01-4

                ).  "-Is"
                 "-I4"  
              ,     -
               "integer*2";

      -v           -
              (F77PASS, PASS1, AS, LD,
            C),     ;

      -V       .  -
                "shell",   
                ;

      -T<><->
                   -
              .      
                . <> -
               :

            "0" - f77  0;
            "1" - f77  1;
            "2" - c1 (-,  1);
            "o" - c2 ( );
            "a" - as ();
            "l" - ld ( );
            "f" -   ( /lib/crt0);
            "m" -  m4.

               ,   "-f" -
              "1"  "f".

                           156
                    00210-01 33 01-4

      -F       
            RATFOR   EFL,      -
             ".f",    ;

      -m             ".r"      ".e"
              4    -
             RATFOR  EFL;

      -ex     "x"    EFL  -
              ".e";

      -rx        ".r"  -
                "x"        
            RATFOR.

              ,
        ' ,   f77, 
       .      -
             ( 
      )       
      "a.out".

          -77    
      ,        
       ,         
         .    
                  
       (       ,
         -79)    
      :

                           157
                    00210-01 33 01-4

      -        "-Is"  "-C";

      -        (  
            ..)         
                  (       
            );

      -       /     "do"
                -
               ,     
             .   -
                ,     
                   "
              ...".

      -        ,  -
                  "/tmp".

      -            
                 -
             ,  ,  -
                   
            ,        
                "out of memory" 
             .   
                   -
             .

             -77  
      :

                           158
                    00210-01 33 01-4

      -          -
            :   "static",  "automatic",  "undefined"
            (  "implicit");

      -          
              ,      . 
                 ,   
            ;

      -           -
              ,      : 0 ,


      -            include  '-
            ';

      -      ,    -
             , :

            b'001' - ;
            o'725' - ;
            x'af5' - ;

      -          "accept"   -   
            "read",  "type" -  "print", "byte" -
             "character",      
               -4;

      -       "or", "and",  "xor",  "not"  
                  ,    "getarg" 
            "iargc"    ;


                           159
                    00210-01 33 01-4

      -        /   -
             :

            0 - stderr ( );
            5 - stdin  ( );
            6 - stdout ( ).

                 "fort.n", 
            "n"  -  .   
              0 - 9.

          .    -
       1-6       
        "&"    ,  
           .  -
         72   . 
      "!"       ,
        "!"     .  
      "!"       .

         -77      -
           .  -77 call
      x(a,b,c)  ( a,b,c -    -
      )   : x_(&a,&b,&c),   
             ,  
          (   
         ).  .  
      (86.24247-01 35 01).

 :

                           160
                    00210-01 33 01-4

      prof, cc, ld, adb, cdeb.

:
       ,   
        f77,    .  
        .    
                 
          .

:
             '    
             
      .      ,        
           -
           .

            
            ,
         ,     
        (     ).

          (      
      )         '
       (   "optimizer  out  of
      space").    /   
          050000(8)    
      .       
              "-O1  -I2"
      ,   .

                           161
                    00210-01 33 01-4

             
          ,       : 
      "adb"  "cdeb".  "cdeb"   -
        -77.

:
      /usr/f77lib/f77pass0 -  0;

      /usr/f77lib/f77p1    -  1;

      /usr/f77lib/f77p1f   -  1     -
                               ;

      /usr/f77lib/lib?77.a -  -77  ;

      /tmp/f???.?          -  .









                           162
                    00210-01 33 01-4

:
      fc -  .

:
      fc [ -c ] sfile1.f ... ofile1 ...

:
              
      :

      -         ` .f'  -
                 . '  -
             ( )     ` .o';

      -       (  -c) -
                     ,  
            ' ,    -
                fc,    
             .   ,    o
             , 
                   
            a.out;

      -       -c      
                   ,   
            .

              fc     
      -4:

      1)            

                           163
                    00210-01 33 01-4

          .        -
           .    ,
           , ,  
            ;

      2)               implicit:
          implicit integer   /i-n/,    implicit  integer
          (i-n);

      3)    doublecomplex, logcal*1,  integer*2,
           real*8;

      4)   "&"       ,  
              ;

      5)   "c"       ,  
             ;

      6)      ;

      7)   " "  ;

      8)       "g",  
             "" .
           ,       
           ;

      9)   ,     
            ;

      10)       -
          ;

                           164
                    00210-01 33 01-4

      11)   N  ,    
            ` " ',  Nh,  -
             ;

      12)   data    -
                
           ;

      13)    ,    
           read,    , -
             .

        /    
        0    19.      N    
      fortNN. (,     9  
        `fort09').      -
      .       ,  
      .    5   
        .   6 
          .

:
      a.out              ;
      f.tmp[123]         ;
      /usr/fort/fc1      ;
      /lib/fr0.o         ;
      /usr/fort/filib.a   ;
      /usr/fort/libf.a   ;
      /usr/fort/liba.a   

                           165
                    00210-01 33 01-4

 :
      ld, ierror, getarg, setfil

:
        ,      -.
                
        ,      .
           :

      1        log;

      2           
           amod;

      3           
           atan2;

      4       cabs;

      5         cexp;

      6           
           cmplx;

      7           
           dim;

      8       exp ;

      9           
           idim;

      10          

                           166
                    00210-01 33 01-4

           isign;

      11          
           mod;

      12          
           sign;

      13      sqrt;

      14       goto;

      15   subscript out of range;

      16      real**real;

      17   ( real)**real;

      100      /;

      101     /-
           ;

      102      ;

      103      ;

      104    ;

      105      format;

      106   format      `('
           ;

      107     /   -

                           167
                    00210-01 33 01-4

              ;

      108      ;

      109    ;

      110      ;

      111    format  h-;

      112     setfil;

      120     ierror ;

      999    .

:
              
      :

            -;

                  -
              ;

             backspace.






                           168
                    00210-01 33 01-4

:
      file -   .

:
      file  ...

:
       file       -
          .  -
      ,       -8, 
      file      512    
      .

:
           .    ,
          ,    
      ,    .







                           169
                    00210-01 33 01-4

:
      find -  .

:
      find __ 

:
       find       
              "__" (..
          )   ,  
          "",    -
       .     n -
            ,  +n  
       n, -n    n,  n   n.

      -name _
            ,   "-"  
              .   -
                 ,
                (    "[,
            "?"  "*");

      -perm 
            ,        
                ""  (.  chmod). 
            ""     ,  
                      
            (017777, . stat);

      -type X

                           170
                    00210-01 33 01-4

            ,          "X",     "X"
                  b, c, d 
            f -    ; -
              M  ;      
             ;

      -links n
            ,    n ;

      -user 
            ,          
            "" (    -
             );

      -group 
            ,     "" (
                );

      -size n
            ,     n ;

      -inum n
            ,   i-   n;

      -atime n
            ,       -
              n ;

      -mtime n
            ,      -
             n ;

                           171
                    00210-01 33 01-4

      -exec 
            ,     ""  
                .      
                  ";".  -
              "()"   ;

      -ok 
             "-exec",      ,  
                    -
              ,      
                   -
             "y";

      -print
             .     
            ;

      -newer 
            ,          
            ,   "".

         '      
        (      
      ):

      1)           
            (        -
                 );

      2)      ("!"   -
              "");


                           172
                    00210-01 33 01-4

      3)      ( "-a" -
                 -
            );

      4)        ("-o"  
              "").

:
              
         "a.out",     -
         :

      find / -name a.out -atime +7 -ok rm() ;

:
      /etc/passwd
      /etc/group

 :
      sh, test

:
          .






                           173
                    00210-01 33 01-4


      fls -  (full screen)  ls


      fls [][...]


      fls    ls    -
        file        
      7920.   ls (,  -l,  -t    ..)
         .

            :

      pf1     (help) .

      pf2         .  
            ***DELETED***         
            .        -
             pf3, pf9  pf12.

      pf3    ,      -
              (fls).

      pf5      ned  , 
            .

      pf6      ,    -
            , . .  pf2.

      pf7      1/2 .

      pf8      1/2 .


                           174
                    00210-01 33 01-4

      pf9           
            ls.

      pf11    file       
            .

      pf12     ,   -
               ls.

       
               fls   -
             .

                 
        ;   ,    
               
       shell   .  
      pf9  pf12 mo     -
        ls.

 
      Dred -  .





                           175
                    00210-01 33 01-4

:
      from -   .

:
      from [ -s ] []

:
       from         
        ,  ,    .
         -s,        
      ,   ,   -
        "".

         "",      from
            
            .

:
      /usr/spool/mail/*

 :
      mail





                           176
                    00210-01 33 01-4

:
      grep, egrep, fgrep -     .

:
      grep  [ ... ]  [] ...
      egrep [ ... ] [] [] ...
      fgrep [ ... ] [] []

:
        grep        
         (  -  ), -
        .       
          .  
      grep      -
              d. 
        .    -
        egrep    .
           -
            .
        fgrep     -
      .O        . 
       :

      -v        ,    
            ;

      -x      ,  ()  -
              ( fgrep);

      -c        ;

                           177
                    00210-01 33 01-4

      -l       (  ),   -
                , -
               ;

      -n             
              ;

      -b        ,   -
               .     -
                   -
            ;

      -i             
            ( ,     -
             ). ( grep);

      -s     .    ( -
                 ).    -
              ;

      -w        ( grep);

      -e 
             ,     "", 
               ,  "" -
              "-";

      -f 
              (egrep)      
            (fgrep)    "".

            ,   


                           178
                    00210-01 33 01-4

            .  -
          ""    $,
      *, [, ^, ! , (, )  ,      
          sh.   -
          ""  -
       '...'.

       fgrep  ,       
           ""  (
        ).

       egrep      -
      .    ""   
         :

             "       ,
               .  ^ ($) -
              () .  "."  -
              .  , 
                ,   
             ;

             ,    
            [  ],     
             .      -8  
                      "a-z0-9".
             "]"       
              .

             "-"         

                           179
                    00210-01 33 01-4

            ,        
             .  ,  -
                  "*" ("+", "?"),
              0   (1   ,
            0   1)     -
            .  '    
                ,  
               .  
            ,   "!"  
             ,      
            ,    . -
              ,      ,   -
                 -
            ..lin     -
                  : [ ], 
            *, +  ?,  ,  !    
             .

 :
      d, sed, sh

:
        :

      0 -      ,

      1 -       ,

      2 -         -
            .

                           180
                    00210-01 33 01-4

:
              -
        grep,    , -
             
      /.

         256  ,    
       .












                           181
                    00210-01 33 01-4

:
      head -    

:
      head [-] [ ...]

:
         ""    
          ,   (   )
        .   "" -
      ,    .

 :
      tail










                           182
                    00210-01 33 01-4

:
      hed -   .

:
      hed [-e][-r][-t] 

:
      hed -     -
           7920.  "" 
         .

      -e         ;

      -r    to  ;

      -t      /tmp/hed xxxxx    -
              (  ).

      hed      ,     
        "-t".        
       /temp/hed xxxxx . ,  
        ,     (  /tmp/hed
      xxxxx ).   q(quit)  (edit)  
       -.   
      ,     (f)  
      .         , 
         .   eof  
        .

 :
        hed         

                           183
                    00210-01 33 01-4

       .  t   .
          :   -8.

       -     . -
              8- -
      ;          -
        .   .. 
       .

      (+/-) -     
            "+"   "-" . 
           .  
              -
         .

      /xxxxxxxx/c -    -
       ( 28  ).   -
       ,      
           .  -
            .

      d -   .

      f -   .

      h -  .

      c - o   . (null) - ,
        1 .

      ?? -    -
        (  28  ),   -


                           184
                    00210-01 33 01-4

       .       -
      ,       
               .  
              
      .

      d     -   ;

      f     -   ;

      h     -  ;

      c     -    ;

      (null)
            - ,   1 ;

      e (-e) (-r)   ( )

      w[]
            -  ;

      q     -      ;

      t     -     -8;

      nodup -    ;

      dup   -   ;

      f[]
            -      ;

      $     -     ;

                           185
                    00210-01 33 01-4

      !     -   ;

      xd, dx, od, do, xo, ox
            -  :   ,   ,
            ;

      insert/delete<> < >
            - /.

  .
      1   - ;

      2   -       ;

      3   -   ;

      4,5
            -  ;

      9   -       ()      
            hed.out;

      10, 11, (7, 8)
            -        (  )
              ;

      12  -    ;

       
            -   .

 :
      xd

                           186
                    00210-01 33 01-4
































                            2
                    00210-01 33 01-4

                        

             
 ,    -
 .     
     -
 .         
  .       
    .











                            3
                    00210-01 33 01-4

                        

 1.   .........................   4
............................................   5














                            4
                   AK.00210-01 33 01-5


               1.   

      :
:                
                 ;

:          . , 
                   ,     ;
                     ,
                      
               .

:         ;

:           ,   -
                 ;

:     , -
                    
                ;

:         
               ;

 :
          .    
         .
         .



                            5
                   AK.00210-01 33 01-5


                                              















                            6
                   AK.00210-01 33 01-5

:
      join -     .

:
      join [] 1  2

:
       join       -
          ,      
      "1"  "2".     "2"  
      "-",    .

      "1"  "2"      -
            -8
       ,     . (  
          ).

            "1"  "2",  -
             ,  
       .      -
        ,         
      cpo  aa "a1", a ae -  aa "a2".

         ,  
        .     
          ,       
      .

        :

      -aN             

                            7
                   AK.00210-01 33 01-5

                   N, 
            N  1  2;

      -e S       "S";

      -jN M    M-   N. 
            N  ,     M-
            ;

      -o cco
            aa xoa cpoa coco  oe, -
                "",     
             N.M,  N -   ,   M  -  
            ;

      -t C    "C"     
            (  ).      "C"  
              ;

  :
      sort, comm, awk

:
           -
         ,    "sort -b";  -
       -t   ,      
      .

      ,    join,  sort,  comm,  
      awk, .


                            8
                   AK.00210-01 33 01-5

:
      kill -  .

:
      kill [-] - ...

:
       kill      (SIGTERM-15)
        .        "",
              .
         kill    -
           -
             
      .     "kill -9"  -
        .

             ,    
          0,       ,
          .    -
           , 
         -.

            -
      ,   "&".

  :
      ps, kill, signal




                            9
                   AK.00210-01 33 01-5

:
      label -    .

:
      label [-w] [-i ] 

:
       label        -
         ,    -    
      "".

             ,  
         6-    80-
       .     VOL1,
                 
      .  -   -
             -8   -
      .

       label          
          .

       :

      -w      .     
            -;

      -i      .     -
                "".

 :
      tape, tm


                            10
                   AK.00210-01 33 01-5

:
      ld -  

:
      ld []  ...

:
       ld '  '    
      ,          
      .        
      '   ,     ld  '  ,  
      ' ,    , 
             ld ( -
           "-r"  -
        ).   ld e-
           a.out.     -
      ,       .

         '   -
       .     -
           (  -
        "-e").

       -      -
      ,        
         ,      -
      .    ,  -
          .  -
              
         ,      


                            11
                   AK.00210-01 33 01-5

        ,    -
      .         __.SYMDEF,
        ,     , -
          ranlib.   ,  
         .

       "_etext", "_edata"  "_end" ("etext",  "edata"
        "end"      )  ,   
       ,       
      ,     -
             .
            .

       ld   .  
        "-l",         
      :

      -d       ,   -
             a "-r";

      -a         
               apyaeo   popa;   o  yoa
            coyec ea 0;

      -l    o  ec copaee e  oe
            /lib/libX.a,    "X" - .    -
            ,  ld   -
               /usr/lib/libX.a.    
            oc,     ecoaxoee     "-l"     ec
            cyece;

                            12
                   AK.00210-01 33 01-5

      -n      ,       
             ecoa ac ye ocyo oo 
            e  paec ey ce ooae,
            o    o    a.      
                4K,   
            eco ceeo;

      -o     ""   "-o"    
               e   xooo   aa  ld  eco
            "a.out";

      -r            ,
                    -
             ld.       -
                   
                        
            eopeeex coo;

      -s          -
                      
            (   ).   -
                       
            oa strip;

      -u        , -
                  -
             .       
              ,    
             ,      popa
            peyec epapeea cca;


                            13
                   AK.00210-01 33 01-5

      -X      ,   ,
                 "$".    -
              cc   -
                    
              ,       .   B
            ay   coo   oeac  oo  ee
            co;

      -x       ( .globl)    -
              .       
               .

:
      /lib/lib*.a     
      /usr/lib/lib*.a  
      a.out            

  :
      as, ar, cc, ranlib, ldover







                            14
                   AK.00210-01 33 01-5

:
      learn -    .

:
      learn [-.] [ [ [.]]]

:
       learn   
            c
       .     "learn".  -
          ,  ,  
      .   ,   "-
      "        "",  
          .   
        "",    -
       learn     . 
         ""  "-",  learn -
           ;     
        .

           "":

      keyboard
               ;

      files    ;

      morefiles
                ;

      C        .

                            15
                   AK.00210-01 33 01-5

        ""        
      learn.

       "-"     -
      ,      
      learn.

:
      /mnt/learn

:
         learn,   ,  o
      oyee  pooc  a  oe  OC,a o ee epc,
      oopa ceac   .      
          ,  ocoeo  epopaco,
      ec po ye axoc   .

              
      ,       -
       -;         ,
            ,  -
              ""
      .





                            16
                   AK.00210-01 33 01-5

:
      lex -    .

:
      lex [-tvfn] []...

:
       lex  ,      -
           .
        (  -  ) -
        ,   ,
       ,    ,   -
          .

          "lex.yy."    
      ,     :

            cc lex.yy.c -ll

            -
             ,  
        ,   -
       ,    ,  
      .

           lex  -
               , 
              
      :

        %%

                            17
                   AK.00210-01 33 01-5

        [A-Z] putchar(yytext[0]+'a'-'A');
        [ ]+$
        [ ]+ putchar(' ');

         :

      -t         , 
               lex.yy.;

      -v       ;

      -n         (  
            );

      -f    "" ,    -
              .      
            .

      -d          (
                  -
              lex).

  :
      yacc






                            18
                   AK.00210-01 33 01-5

:
      ln -   .

:
      ln 1 [2] ...[ n] [d2]

:
           (   , -
      ,     ,  ..)   -
        .     -
              -
       ,       -
        ,     .

      Koaa ln coae  aoo yaaoo  aa  "
      1",...,"   "  aepaoe      cyecye
      cpaoe "d2". Ec  aece    
        "  1"  " 2",    
      " 1" coaec aepaoe  " 2"  eye
      aaoe.

:
         ,    -
              -
      .

  :
      rm



                            19
                   AK.00210-01 33 01-5

:
      lock -  .

:
      lock

:
       lock    ,  
          "Again"    -
         ,       .
            ,    
      ,       -  
           .










                            20
                   AK.00210-01 33 01-5

:
      logoff -    .

:
      logoff

:
       logoff      
          .      logoff
            .

              
         ""    .









                            21
                   AK.00210-01 33 01-5

:
      look -     .

:
      look [-df]  []

:
       look     ""  
         ,   "".
        .  "d"  "f"  
      ,    sort:

      d     "" :  , , -
                  ;

      f         .    
                .

  :
      sort, grep







                            22
                   AK.00210-01 33 01-5

:
      lorder -   ' .

:
      lorder  ...

:
               -
        '     . 
            '
      .        -
      ,   .     -
          tsort    
         ,   
         ld.

              
          ".o":

            ar cr library `lorder *.o | tsort`

  :
      tsort, ld, ar

:
       '   ,       -
      ,    ".o" -   
        .



                            23
                   AK.00210-01 33 01-5

:
      lpq - a cocoe oepe  A.

:
      lpq

:
       lpq    , 
          .      , 
         ,     -
      ,     . -
              
         lprm.

:
      /usr/spool/lpd/*

  :
      lpr, lprm







                            24
                   AK.00210-01 33 01-5

:
      lpr -      .

:
      lpr [-m] [-c] [-r] [-b ] [...]

:
       lpr      -
          .      , 
        .

           :

      -m         -
                mail;

      -c     , ,    
            ,    /tmp/spool/lpd - 
               /tmp/spool/lpd    
                  ;

      -r         -
            ;

      -b     ,     -
            ,     , -
                 .  
                , -
               "",   
                .  
             14  "".

                            25
                   AK.00210-01 33 01-5

:
      /usr/spool/lpd/*
      /usr/lib/lpd     "" 
      /usr/lib/lpf       
                     

  :
      lpq, lprm

:
        -c,      (-
               ), 
      - .

             
        .








                            26
                   AK.00210-01 33 01-5

:
      lprm -      .

:
      lprm [...] [-...] [...]

:
       lprm       .  e-
      aop,  -aa  aea opeoo aa 
      oepe      lpq.  ,
           ,    .
             
      .

  :
      lpr, lpq


      /usr/spool/lpd/*







                            27
                   AK.00210-01 33 01-5

:
      ls -   .

:
      ls [-1ACFRabcdfgilmnqrstux]  ... l [  ls]  
      ...

:
        ,   ,
        ls           
      .       ,   
      ,    ls       
        .     -
              .
         ,   -
       .

              .   
          ,     -
      ,           .
              
          .   
        ,        
      .  ,    "-m",   -
       ,      
      ,   ",".    "l"  ,
          "-m".

      ,      -
      ,      ,   


                            28
                   AK.00210-01 33 01-5

         .     ,  
            .
        :

      -l     "  ",    -
                 ,  , ,
                    .
                ,  -
                   
             ;

      -t         -
              (     -
            )     ;

      -a       (    -
               "."  );

      -s          , -
               ;

      -d        , -
                ,    (-
                "-l"   -
             );

      -r         ,
                    -
                 ;

      -u            

                            29
                   AK.00210-01 33 01-5

                    
            (-t)   (-l);

      -i            
              i-;

      -f      ,    -
                  ,  
            ,      .    
              "-l", "-t", "-s"  "-r",  -
              "-a";  ,     
              ;

      -g         -
                 ("-l");

      -m       ;

      -1              ,
            ,    ;

      -c        ,  -
            ,        (pipe);

      -q       "?"    -
                ;   -
            ,     -
            ;

      -x             
                  ,   
            ;      ,  


                            30
                   AK.00210-01 33 01-5

              ,    
            ,  "x";

      -A    Bac ce ea eyeo aaoa (aaoo
            "-a")  '.'  '..' ;

      -F             
             "/";    
             "*";

      -R        -
             .

       ,     "-l", -
          11 ,   -
       .   :

      d         ;

      b              
             ;

      c              
             ;

      -          .

       9       
          .    -
       ,  -   -
           ,   -  
       .      -

                            31
                   AK.00210-01 33 01-5

           , -
               .  
          "" 
            . -
         :

      r         ;

      w         ;

      x         ;

      -          .

             
        "s",       -
       ; ,     -
           "s",  
          .

         ( "x"  "-") -
       "t",     1000.

              ,
           ,   -
       .

:
                   
         .

      ,       

                            32
                   AK.00210-01 33 01-5

      80 .     15 -
      .    "-i"  "-s",  -
        20 .     "-i"
        "-s",   25 .     -
      ,       "-l"  "-n", ,
                 
      .

            ,    
        , ,  

            ls -s ! lpr

        

            ls -s

            
      ,    .








                            33
                   AK.00210-01 33 01-5

:
      m4 - .

:
      m4 [ ...]

:
       m4     -
          ,   .-
        ,   ,  
        .     
        "-",        .
            -
      .

       :

            (1,2,...,N)

       "("     -
       .   "("  
      , ,      .  
         ,  -
         ,    ,  -
      .       
      ,     "_",  
          .

             
      .       -
            (`').  


                            34
                   AK.00210-01 33 01-5

           -
       .

         ,    -
         .  -
            -
      ,          , 
             ,  
        ,    .  -
                
         .

              ,
               . 
           "" (
           ).   -
        4,    
        :

      define(,)
                  -
              ,    .
              $n   ,  
            n - ,   n- . 
            0      .  
               ;

      undefine(`')
              ,   -
            ;


                            35
                   AK.00210-01 33 01-5

      ifdef(`',2,3)
               ,   -
                ,    - . 
              ,   
            ;

      changequote(l,r)
                 ()  
               .  changequote 
                   
            (.. `');

      divert(n)
                    10   
            ,      0    9. 
                      
                .   -
                  ( 
             0).  divert   -
                       (
            ).  ,     -
            ,     0-9,  -
            ;

      undivert(n1,n2 ...)
                    -
              (   ,  -
             ).      -
              .      -

                            36
                   AK.00210-01 33 01-5

            ;

      divnum
                ;

      dln           
               ;

      ifelse(a,b,c,d)
                .    -
                ,   -
               .     
                  , 
                4, 5, 6   7.
                   -
             ,  ,        -
            ;

      incr()
               ,  -
                1.    
              ;

      eval()
               .  -
               32-  -
            .     +, -, *,  /,  %,  ^
            (  ), , ;

      len()
                "";


                            37
                   AK.00210-01 33 01-5

      index(_1,_2)
               "_1"    
                "_2".  
              .    "_1"  
            "_2"  ,  -1;

      substr(s,i,n)
               "s",   
            i-  ,   "n" .  -
               .      
            ,  ,   -
                "s";

      translit(s,f,t)
              "s",  , -
                  "f",   
             "t";

      include()
                  "-
            ";

      sinclude()
             include,   ,  -
                ,     
                ;

      syscmd()
              "" .  
             ;

                            38
                   AK.00210-01 33 01-5

      maketemp(...XXX...)
               XXX    
            ;

      errprint(_1,_2,...)
                  -
             ;

      dumpdef(_1,_2...)
                  
              (  ,   -
            );









                            39
                   AK.00210-01 33 01-5

:
      mail - o .

:
      mail [+] [-i] []...
      mail [+] [-i] -f 

:
       mail     -
               
      " ".   , -
            /usr/spool/mail  -
         ,      
          .      mail,
                  
        " "    
      .      "",  -
          ,    , 
       "  -  ".  -
       "", mail    
         ,   ".",   -
         " "  "".  -
              ,   
         " ".   "-
       "  ,   -
        ">".  , "" -  , 
          ,  
           
       (  ),    "-


                            40
                   AK.00210-01 33 01-5

      "   "!_" .

           :

      +             
            "  -  ";

      -i     ;

      -f              -
                ,  "
            ".

          "  ",    
            
       "?"   .   -
      :

      <return>
                  -
              ;

      d          ;

      p        ;

      -        ;

      s[]...
                  -
             ( ,   mbox  -
              );

                            41
                   AK.00210-01 33 01-5

      w[]...
                      
              (  - mbox);

      m[]...
                
            (  - );

      EOT (< > - <cntrl-D>)
                 -
                ;

      q      ,    EOT;

      !
               SHELL    
             .

             
        .      
      .

:
      /etc/passwd                 -
                              

      /usr/spool/mail/*       " "

      mbox                     

      /tmp/ma*                 

      dead.letter                 


                            42
                   AK.00210-01 33 01-5

                              pif  -mes  [a-i]*.1 > ai1.f mx
                              -ES -P ant.ai ai1.f > ai1.fcps
                              pif  -mes  [j-z]*.1 > jz1.f mx
                              -ES -P ant.jz jz1.f > jz1.fcps
                              rm *.f













                            43
                   AK.00210-01 33 01-5

:
      make -   .

:
      make [-f _] [] ...  ...

:
       make       -
        .   make  
       ,    , -
          ,     -
       ,    ..

         make,    
        ,    
             -
      .     (  make) -
          ',  -
      ,           
      ',    SHELL   '.

            "-f", -
           "_"  "-", -
         .    -
              "-f"  -
              
       .

       ,    ,  
            (     -

                            44
                   AK.00210-01 33 01-5

       )    .

          ,   -
            . -
               ',
              ""
      , ,       .  
         ,     ,
         ,    
          SHELL,     
       .

               -
           (-
        "*", "[-]", "?",   -
            SHELL; ).

       ,    "#",  
           make.

               
       "pgm",     
      "a.o"  "b.o", ,     ,    
       "a.c", "b.c"  "incl.h".

            pgm: a.o b.o
                  cc a.o b.o -o pgm
            a.o: incl.h a.c
                  cc -c a.c
            b.o: incl.h b.c

                            45
                   AK.00210-01 33 01-5

                  cc -c b.c

            '  -
            ,   
                  ,   
        '      .
             -
             '.   ,
             
      "":

        aa :: x.c y.c
              echo     
        aa :: x.y
              echo     YACC

           ,
            :

             = 

           :

            $()
      
            ${}

        ""      
      "".  ""    ,   -
          .

           


                            46
                   AK.00210-01 33 01-5

            ,     make. 
            
             ,  ,
        . ,    
      :

            TEXT =  2
            progr:
                  echo ${TEXT}

        make       
       " 2".      -
       :

            make "TEXT =  1"

                   
      " 1".

         , -
           make:

      $*       ;

      $?     ,    -
              ;

      $@      ;

      $<     ;

      $$    "$".

                            47
                   AK.00210-01 33 01-5

       '     -  -
           :

        -         -
           ;

        -           -
           ;

        -    ".DEFAULT";

        -       -
           .

       ,    -
          ,    -
          . ,  -
        "a."  "a.":

            a. : a.
                  mv a.M a.K

             -
      ,           
        ,   . ,  
           ".o"   -
        "."   :

            .c.o :
                  cc -c $<

       ,     ,  

                            48
                   AK.00210-01 33 01-5

      ".o"   ".c"      -
              (  ,
                 
           ).  -
         :

            .SUFFIXES: .o .c

          '   
        ".DEFAULT",       
       ,   make    
            . ,  
         :

            .DEFAULT:
                  cp dummy $@

           (  -
            dummy).

               
          , -
        .  ,        
        aca aeo opoe:

            pgm: a.o b.o
                  cc a.o b.o -o pgm
            a.o b.o: incl.h

         ,   -
             -

                            49
                   AK.00210-01 33 01-5

      ,    .   -
       :

      AS     (as);

      CC    - (cc);

      RC    -77 (f77);

      LEX      Lex (lex);

      YACC    Yacc (yacc).

              
       :

      CFLAGS     - (cc);

      FFLAGS      -77 (f77);

      LFLAGS         -
                 lex;

      YFLAGS      yacc;

      LOADLIBES   .

           -
          :

      .out   ;

      .o    ' ;

      .c        ;

                            50
                   AK.00210-01 33 01-5

      .f       ;

      .e        Efl;

      .r       ;

      .y       Yacc;

      .l       Lex;

      .s       ;

      .p       .

           SHELL  -
        .    -
              ,
      ,    ,  
           SHELL.

                
      ".SILENT",         
      "@",        .  
      ,    make    
                
      "-s".

             make    
         .  
         ,     
      '       -
        ".PRECIOUS",  .

                            51
                   AK.00210-01 33 01-5

             
      .       -
        (       
         ).      
      ,     ',   
        ,         '.
        ,     '
      ,    .  , -
         ,    ,  -
          :

      a(b)     ,      "b"    
                "a";

      a((_b))       "_b"    
               "a".

         -     ,
         make  . 
          .    
          '   
      ".IGNORE",     
       "-".

       make      :

      -d    .     -
                ;

      -f           
           ;    - "makefile"  "Makefile".


                            52
                   AK.00210-01 33 01-5

               ,        -
              ,    
            "makefile";

      -i          
           .             
           ".IGNORE:";

      -k         ,  -
                ,    -
              ,      
            ;

      -n   ,    ,  -
              ;

      -p      ;

      -q           '   
               0,    -
           ,  -1   ;

      -r      ".SUFFIXES:"  -
           .     -
           ;

      -s      ".SILENT:" -  -
              ;

      -S          -
            - ;

                            53
                   AK.00210-01 33 01-5

      -t       ',    
           - ;

  :
      sh, touch

:
      ,     -
        (  cd),         
         .











                            54
                   AK.00210-01 33 01-5

:
      mesg -     .

:
      mesg [n] [y]

:
       mesg   "n"   -
            -
      .  mesg   "y"  
        .     mesg -
            .

  :
      write

:
         0,     -
      , 1,  ,  2  .







                            55
                   AK.00210-01 33 01-5

:
      mkdir -  .

:
      mkdir  ...

:
      Koaa  mkdir  coae   yaae   cpao   co
      cayco  755.    "."   -
        ".."     
      .

         mkdir     
       .

  :
      rm

:
       mkdir    0,   -
          .    -
           .





                            56
                   AK.00210-01 33 01-5

:
      mv -  .

:
      mv 1 2
      mv  ... 

:
       mv  "1"  "2".

       "2"  ,     -
        "1".    "2" -
       ,      
      ,  oaa  mv  eaae  pe   cae
      cpoy  caapoo oa, ec    -
         "y",  .  
          mv.

            ,      
        ""    "" 
        .

       mv         
      .

  :
      cp, chmod

:
       "1"  "2"      
      ,  mv     

                            57
                   AK.00210-01 33 01-5

      .         
          ,      
      ( ) .

            
          .

:
       mv     "-f"  -
        rm,        -
      ,        .










                            58
                   AK.00210-01 33 01-5

:
      newgrp -   .

:
      newgrp _

:
       newgrp    
       ,   login.  -
           
       ,     ,
             -
           ;

          ,     
      ,    - ;

       newgrp   .

  :
      login






                            59
                   AK.00210-01 33 01-5

:
      nice, nohup -    .

:
      nice [-]  []
      nohup  []

:
       nice      -
      .     "", -
           (    
       )      -
       20.  ""    10.

      -     -
            
      , , "--10".

      Nohup   ,    
            . -
         5.  nohup    
        "&"  ,    
               
        ,      
        .

  :
      sh, csh

:
       nice         


                            60
                   AK.00210-01 33 01-5

      .

:
       nice  nohup      sh.
           csh, ,   "&",
              -
         .       
      nohup,     ,  -
             nohup.out.

       nice   csh   ,  
           - "nice+10" -
        ,  "nice-10" -
          -  
      .








                            61
                   AK.00210-01 33 01-5

:
      nm -   .

:
      nm [-agnopru] [ ...]

:
       nm     (  -
      )               
      ' .     -
      ,      -
       '  .    ""    ,
          "a.out".

           
      (,        )     u
      (), a (), t ( 
      ),  d (  ), b ( -
       bss)  c ( ).    
       ( ),     
      .    .

        :

      -g       () ;

      -n      ,    ;

      -o           
             ,     ;

      -p     ,      -


                            62
                   AK.00210-01 33 01-5

            ;

      -r       ;

      -u       .

  :
      ar, ar, a.out












                            63
                   AK.00210-01 33 01-5

:
      od -   .

:
      od [-format] [file] [[+]offset[.][b]
         [label]]

:
       od      
        "file"      .     
      ,      "o".  -
            (  -  -
       )   .

        ("format")     
      :

      a            -8.
                  ,
             ,     
            -8,    .  -
              "p",  ,  -
               - . 
             "P" -     
            ;

      b       ;

      c            -8.
                
           ,     :    -  ;    -  


                            64
                   AK.00210-01 33 01-5

           ;    ;7  -  -
           ;  -  ;  - .  -
             ,       
           -8,    ;

      d      (short)       
            ;

      f       (long)   
           ;

      h      (short)     
             ;

      i      (short)     
           ;

      l       (long)     
             ;

      o      (short)    ;

      s[N]       
             ,   ""
           (' ').  N    -
            ,   N 
           3;

      v      .  ,   -
                   
            '*'   ;

                            65
                   AK.00210-01 33 01-5

      w[N]          
               .       
           ,        
           16 .  N   32 ;

      x      (short)     
           .

       "file"   ,    
        .     , -
         .

       "offset"        ,  
            .       
            .  
          ".",    -
       .     "b",  -
              512 .  
      "file" ,   "offset"    -
        "+".

       "label"  -    
        .        "()"
             ,  
      .

  :
      adb

:
             "+". -


                            66
                   AK.00210-01 33 01-5

          .















                            67
                   AK.00210-01 33 01-5

:
      opr -       .

:
      opr   [-h] [-u ] [-v ] [-p ] [-n _-
            ]  [-c  ]  [-t  ] [- ] [
            ...]

:
       opr       -
        .

            -
          SPOOL,   opr -
              -
       .

             
      opr:

      -h      ,    -
                 HOLD,  -
                   
              opr     
             ;

          ,  -
              .   
                  5-    
               /c/passwd;

                            68
                   AK.00210-01 33 01-5

             ,
            k          
                ;

      _
            ,    ,  
               ,   -
               ,     
            ;

        ,      
              .    -
                    ,  
                    opr,  
             -    ;

      -u    ,         
            ,     -
            ,           
                  ,    
              ;

      -v    ,         
            ,     -
            ,     ,  -
                ;

      -t         -
               te  ;

      -T    ,        


                            69
                   AK.00210-01 33 01-5

            ;

           .

:
      /etc/passwd
              

      /tmp/opr????
             

 :
      qprt

:
             -
             ,  
                
        opr.

            -
              
                      
      /rtc/spooler/opred,   opr.





                            70
                   AK.00210-01 33 01-5

:
      passwd -   .


      passwd []

:
          (  )  ,
               (
           -
      ).

          ,    
      .      .  
              -
      .

              
      ,        -
      ,      ,   -
              .  
      ,    .

               
        -;   , 
         .

  :
      login, crypt


                            71
                   AK.00210-01 33 01-5

:
      PC  -     

:
      PC []......

:
             -
       .     : -
      ,     '.', -
            ;  -
       ,    '      
      ,        -
           "."  ".".  
      "." ,   - -
           .

      ' ,    
          ' ,  
           (..        -
               -
       ).

            -
            ".L".

            :

      -C    oee  ay  cop     ae   eepa
            o'eoo  oa ae oa, o opyec
            oo oa popaa;


                            72
                   AK.00210-01 33 01-5

      -D=  -D

            opeee yaaoe  ""    pepoeccopa.
            Ec   opeeee   e   aao,   aoe   
            opeeec a "1";

      -S    opye  epecee  aca-popa  
            ocae  peya pao  e acceepoo
            eca   cooecyx  aax  c  cyca
            ".S";

      -N    ae cco oa,  eeppyex  PC,  o  e
            oe x;

      -P    aycae oo pepoeccop   epecex
            aca-popa,  peya   -
                    -
             ".I".

      -U yae  ce  aae  opeee  yaaoo
            e;

      -I
            oc ao "#include"   cpaoe  "cpa",
            ec  o  e  ae  eye cpaoe
              /usr/src/include;

      ocae  apaep  c  o  coec   c
      acae    C '  , 
             
         ,  ,    .

                            73
                   AK.00210-01 33 01-5

        ,     -
      ,    (      ),  
           a.out;

      oop aca-8000  epc  1.0  ee  eoope
      o  o caapoo :  
      64  ,     n  -
          (7-n)*4 ,  1<n<6 ( -
       ),    px  ao  e  oo
      pea 15. Moe cooac paea -
      .   ,    .

:
      .        

      .L        

      .       ' 

      a.out           

      /tmp/pcc??????      

      /tmp/pcc??????.s    

      /lib/pasc          

      /lib/pmp          

      /lib/prt0.0         

      /lib/crt0.0        

      /lib/libp.a        


                            74
                   AK.00210-01 33 01-5

      /lib/libc.a        

  :
      CC,LD

          .

:
       ,     -
      m  ,   .  -
           -
         .

              ,
               ,
          .  -
              ,   , 
         .   -
          dcon.







                            75
                   AK.00210-01 33 01-5

:
      pif -  .

:
      pif [] ... [] ...

:
       pif       
           .

           ""   
      "-",       .  
      ""          
      :

      -o
             ,    
              ""        ,
              .    N-M   
                N  M;  -N  -
             ""          N;
              N-    ""   
              N   ;

      -nN       N;

      -sN      N . Pif   -
                  N 
            (  N=1)  ,      
               ,   -
                 ;


                            76
                   AK.00210-01 33 01-5

      -m   /usr/lib/tmac/tmac.m, -
              ,  -
              ;

      -ran    () a  N;

      -i          ,  
              ;

      -q       -  
             rd;

      -T       
            ;

      e              -
              ,    
             ;

      h           -
                  ,  
                    
               . ,  -
                  -
             .

:
      /usr/lib/tmac/tmac.*
             

      /usr/lib/term/*
             


                            77
                   AK.00210-01 33 01-5

      /tmp/ta*
             

  :
      tbl, col














                            78
                   AK.00210-01 33 01-5

:
      pli -   PL/1.

:
      pli [-clgirsq ]  ...

:
       pli    -
            send.     
      ,         
           PL/1. 
               popa
      PL/1,  oop         
       .        
        ae,  coyeo  aece  
       send.

               
        .     
                      
      $home/.../pli.     -
       :

      -         ;

      -        ;

      -     o, peapoae      
              ;

      -         -

                            79
                   AK.00210-01 33 01-5

                ;

      -      ,     -
                    
            ;

      -         , -
              /;

      -          -
                   -
                     (
               ).

              
      :

      -c         (  -
              );

      -l        ;

      -g    opoa, peapoa   -
             ;

      -i          -
              PL/1 ;

      -r            $home/.../pli
              ;

      -s            
            caap o, eco  send;


                            80
                   AK.00210-01 33 01-5

      -q       send   gath.

                 
              i.

:
            /usr/lib/model/jobcard   JOB  
             send.

            /usr/lib/model/plic    -
            .

            /usr/lib/model/rlicl     -
            / .

            /usr/lib/model/pliclg    -
            / /.

            /imp/pli*   .

            $home/.../pli   .

 :
      send






                            81
                   AK.00210-01 33 01-5

:
      pp -        

:
      pp [-N]

:
       pp          
         .     -
       ,   .  -
      ,       
        "7" -  .  -
           .  -
       :
             pr -2 text " pp -3 >/dev/lp

:
      ,        
      DZM         -
       oepa "opa a a aa", oao 
        .





                            82
                   AK.00210-01 33 01-5

:
      pr -  .

:
      pr []...[]...

:
       pr       
      .    ,  -
        ,      
        .   "" , -
       pr   .

              -
        :

      -n           ;

      -iN            ""
            (       ).
               (N),  -
            N;

      -n  ,   "n" ;

      +     "";

      -h      ;

      -wN    ,   
            N   72  ;

      -f        


                            83
                   AK.00210-01 33 01-5

            "   " ( -
               " 
           ");

      -lN     N   66 
          ;

      -t     5         
          ,   ;

      -sC     "C",   -
             . 
           "C"    ;

      -m     ,   
          .

  :
      cat, more

:
              pr -
         .






                            84
                   AK.00210-01 33 01-5

:
      PRETTYP-    

:
      SH peopapye popay a acae co  caapoo
      xoa, peya    ,

:
        

:

      *  .

      *      -
       .

      *     .

      * co coo   cpoe  peae  72,  cpoa
      paaec    epeocc,        
        .






                            85
                   AK.00210-01 33 01-5

:
      ps -   .

:
      ps [acgklrstuvwx# [-]]

:
       ps        .
           -
        "ps axlgw".     -
           "ps au".
          ,   -
          .    
       ( ,   "cx"):

      a           -
             (   
            );

      c       ,    -
                 comm. ( comm 
                  ,
             ).    -
               ps     '
            .     ,  -
                 ;

      e             
              , (..    -
               );

                            86
                   AK.00210-01 33 01-5

      g         .   
               ps   "-
            " .    "-
            ",         -
                    "-".  
                   
                getty;

      k           
            ;

      l      ""  .    
               , 
            , ,     
               ;

      r<t>-<string>-
               ps.    
                     <t> ,
                  -
                <string>      .
                ,  -
               .   -
                "/etc/psloop",  -
                   -
              ;

      s           .
                  
                 


                            87
                   AK.00210-01 33 01-5

            ;

      t -
              ,    
                   ( 
             ,     ps,
            ,  t3  tty3, tc0  , td0 
            ttyd0, t?  ,    ,
             ..).     ;

      u      ,   -
            .      , -
             ,   -
                (  -
            ),  , ,  
             , ,  -
                ;

      v       ,    ,
                .  
             ,   ,  -
            ,    ,  -
              ,    ,   
                ,     
            ,   ,  -
              ,      
            ,       ,
                 ,  -
                     

                            88
                   AK.00210-01 33 01-5

              ,   . 
             : r  ,  s  
            , w  , d  -
              (-),   p    
            .      -   
                 ;   
            "127"   .  
            -       
            ;

      w       ps  ,      
                 132 .  -
              ,          80
            .      -
             ,     -
            .   w   : "ww", 
              ,  128 ,   -
                 ;

      x         ,  -
             ;

      #         (  
             #),      
             .       -
            .

          ps  ,   
            "k".   -
            "KERNEL",    


                            89
                   AK.00210-01 33 01-5

          ,      "/demos".   
          .   -
        ,   ,  -
        .

         ,   -   -
       .

              -
      :

      F     ,   ;

      S      :    -  ,  s  -
            "",  w  -  , r - , i -
            , z - ,  -  -
            ;

      UID      ;

      PID     ;   -
                 ,    
             ;

      PPID    ;

      CPU      ;

      PRI    ;    -
             ;

      NICE     ;

                            90
                   AK.00210-01 33 01-5

      ADDR    ,       -
            ,    -   ;

      SZ         ;

      RSS      ( ,  -
                   ) -
            ;

      WCHAN ,   ;    ,
              . tty -  
              ;

      TIME       ;

      COMAND
               .

      ,   , , , -
        ,     , 
      <defunct>(<>).  ps  -
            ,   
      ,        -
      .        
      ,         
        ,         
      .

  :
      kill

:


                            91
                   AK.00210-01 33 01-5

          ps    ;
           -
        .













                            92
                   AK.00210-01 33 01-5

:
      pwd -    

:
      pwd

:
       pwd          ()
      .

  :
      cd










                            93
                   AK.00210-01 33 01-5

:
      PXREF  -   

:
      PXREF

:
      PXREF         
                   -
         .   -
           :  '-
      ,        
        .     
             ,
        .








                            94
                   AK.00210-01 33 01-5

:
      q, ind, autolog, mo -   .

:
      q ...

      ind [user]

      autolog   []

      mo

:
        q, ind, autolog, mo  (  )  
             ,
            .  
           .

        mo     
      -.

:
      /dev/vcf?

 :
      vcf, cpcmd, cpmode

             
        "     ", " 
      ".

:
       'command too long'     132


                            95
                   AK.00210-01 33 01-5

          .















                            96
                   AK.00210-01 33 01-5

:
      ranlib -    

:
      ranlib 1 ...

:
       ranlib     
           '  (  
       ).    "ranlib"    
      ,      "ar", 
       "__.SYMDEF",   .  -
       "ld"     ;
       ,        -
              (   , 
         ).     
        "ar",      -
          "/tmp".

:
         '     -
            "ranlib",  
          "__.SYMDEF",  -
          "ld"        
      "__.SYMDEF out of date"    "__.SYMDEF".
               
         ,         
       "__.SYMDEF"   -
      ,    .    

                            97
                   AK.00210-01 33 01-5

      ,      
      "cp".   ycpae  ecooec  a  eoxoo
      oop oay "ranlib".













                            98
                   AK.00210-01 33 01-5

:
      red - opa peaop eco.

:
       red [-] _aa [oep_cpo]
       red [-]
       red [-] -
       red [-] -r a_pooo

:
      Peaop  red  peaae      peapoa   
      pocopa   ao      pao   pee  c  oo
      epao EC-7920  coecx c . O  ooe
      pocapa  a  pae epaa o  ecoo
      ao, peapoa a c cooae  ypa-
      x  a  epaa  oa peaopa, epeoc
      opa  aa  a  poo pye oepa
      peapoa.   Peaop   aaoe   o  y
      peaopy "red"  OC EMOC/CM   opoo  oca  
      pyooce popaca ("aooa ea oa
      oepaoa ccea. Pyooco popaca.  o-
      pa peaop eco RED.").

      Peaop aec c oo oa "red"  oo 
      ceyx opao:

      red [-] _aa [oep_cpo]
            Haa   peapoae    aa    "_aa",
            ycao  oo  a  cpoy "oep_cpo"; ec
            oep e yaa, ceaec aao aa.


                            99
                   AK.00210-01 33 01-5

      red [-]
            poo peapoae c  oo  coco,  
            oopo    aepe pey ceac pao c
            aoo epaa.

      red [-] -
            oop ceac peapoa ao oce co
            cce  peaopa.

      red [-] -r a_pooo
            oop ceac peapoa, ca  pooo
             yaaoo aa.

      Pe  pao  peaopa  aaec  c  oo  aopa
      "e",   aoy     oopx  cooecye  oa
      aca ya. K  ec  c  oo  cpo
      oca  e  a  "-aop_y+aop_y",  e
      a ooa cpo  oe  ocycoa.  Ocae
      e oe aaac:

      1.     apyee  oa    e  "red  --l+s  ..."
            (opae  ae,  o  ep  "-"  ec
            pao cooecyeo apyea oa,  a
            opo oaae "oea a l");

      2.    c oo epeeo csh REDKEYS, apep:

             setenv REDKEYS "+l"

      3.    c oo oa peaopa, apep:

                           100
                   AK.00210-01 33 01-5

             <AP>-w<BBO>

             o oaae:

             (7)-W(BBO)

      Booe :

        l - paoa oo c o ya (pe LCASE)

        s - p oe a epa co "{", "}"    ..
      opaa  c  oo ap coo (oc o a
      cea);

        t - e ca ay eco poeo.

        w - papeee ac  ey a.

        z - e eppepoa yce co a pae a
      poe  (o  yoa  yee  co  oc  c
      epaa a poe);

        S - e cea pa p  oope  ceaca  oce
      co.

      o yoa  ycaaaec  pe  "-ls";  ec  a
      epae  e  ycaoe  pe  "lcase",    "+ls" 
      poo cyae. Ceye e  y, o p  cee
      peo   "l"    "s"    poecce  pao  eoxoo
      epea pa, aa "CTPH KP".

      Bo oa ocyecec  c  oo  yoax

                           101
                   AK.00210-01 33 01-5

      a  epaa  EC-7920.  Paeee oa pao
      a,  o  oo  paec  coaae  c  paeee
      oa a ooeo poo aaype epaa
      "epoa-15-"  a  CM  BM.  Heoope   o
      ca  c  e,  o  aa  aa oe o 3
      pae oa,   aco  o  "pecpa  oa",
      oop ycaaaec c oo a "2"  "3"
      ( coecoc c CM BM oo  ae  cooa
       o e "8"). Taa oa peea  ae
      "/usr/lib/re.std", oop ceaec  p  aa
      a "10" (oaa "ycao_a").






              Paeee oa a aaypy 7920

 -----2--------1---------2---------3------pecp:
 ! pecp 2 ! +c     ! ca  !      !  - 1
 ! pecp 1 ! -c     ! ypa    !  oo !  - 2
 ! pecp 1 ! a aa ! - cpo  ! a epe!  - 3


                           102
                   AK.00210-01 33 01-5

 -----3--------4---------5---------6------
 !  3 ! oec ! c poe! yp co!  - 1
 ! ca 3! co oo ! yc a   !  a a !  - 2
 ! pecp 1 ! oo eo!  aao  !oo pao!  - 3
 ----------------7---------8---------9------
 !           ! apye  ! pecp 2 ! + oc   !  - 1
 !           !           ! pecp 1 ! - oc   !  - 2
 !           !           ! + cpo  !   ***     !  - 3
 ----------------10--------11--------12-----
 !           ! pe a  !  ypa   ! oo  !  - 1
 !           ! ce oo !  aya    ! oe     !  - 2
 !           ! o   !   ***     !  ***      !  - 3
 -------------------------------------------------
   --cpae---
   ! oc !
   ! oop !
   ! ee  !
   !   oa    !
   --.eca--
   !           !
   ! xo     !
   !           !
   -------------

                             Pc. 1.

      Ocoe o peaopa o epc  CM BM:

      1.    Beco oa "pe ca"  eea  oaa

                           103
                   AK.00210-01 33 01-5

            "ca  poe", oopa cae  eyee
            eco  cpo  poe  (o  yoa  4,   
            ee    ca    poeo    yo   ec
            <AP>co<BCTABT>).       ca/yae
            coo     cpo  oo  ooac  o
            aoo   oooc   epaa,    o
            oaa "c poe", "yp. co", oope 
            oe   o   aoox    oa    epaa
            a/a  ec    a pao pa
            paa epaa.

      2.     epexoa  pey yaa ypcopo  oa
            apyea  ae  "BBO"    ee oy 
            oa ypae ypcopo

      3.    Opay  epy  p  oe  eoxoo   cea
            yaa.

      4.     oa/oa  eecox  coo  co-
            yec oa coo a " 07".

      5.    Ec apye oa e yeaec  oe oa,
            eo  oo  ec  a  ecoo  pa,  aa
            "<AP>" oce oa oepeo ac apaepa.

      6.     epeee oa epx/  pao/eo
            ocaoo  oec  ypcop    cooecye
            pae paa  aa "BBO".

      B peaop ee oa "aya"  "oe",  oope
      oo  aca    pooo ceaca ayy 5 cey


                           104
                   AK.00210-01 33 01-5

       oae aa a  "o"    peaae
       aca yeoo poooa pao peaopa.

  :
      rpl(1)

:
       oopa ceaca  oce  co  eoxoo,  o  
      cpaoe  "/tmp"    ocae  a  c ea
      "rett*"  "resv*". B ea  paox  ao  peaopa
      oaec    ooae,  oe   epeeo
      "USER", o oep ooae, ec  a  epeea
      e aaa..

A
       /tmp/rett*. - pooo pao peaopa;
       /tmp/resv*. - cocoe peaopa  p  xoe  
      eo;
       /tmp/retm*. - pao a.







                           105
                   AK.00210-01 33 01-5

:
      refft, crreff -     -
      .

:
      refft < >
      crreff <>

:
       refft  crreff       
           -
         .   crreff  
       ,      ,
          ,     .
              
          :

                ...

        ,   ""  -
      ,   "", ""   "",   
      .

       refft     -
      ,    ;    
               
      ,     .

  :
      ctags

                           106
                   AK.00210-01 33 01-5

:
       refft       
       SHELL    crreff   -
       ( "-j").














                           107
                   AK.00210-01 33 01-5

:
      rev -   

:
      rev []...

:
       rev         
       ,     -
          .       
      ,      .










                           108
                   AK.00210-01 33 01-5

:
      rline -   

:
      rline

:
       rline        
            .  -
        CSHELL    , :

       #
       echo "Enter devise type       set dev=`rline`









                           109
                   AK.00210-01 33 01-5

:
      rm, rmdir - ya a (cpao)

:
      rm [-f] [-r] [-i] [-] ...
      rmdir  ...

:
       rm         
       .

               
        ,      .   
               
      ,          
      ,    .

                 ,  
            , 
             
        .     -
       "y",  ,     -
      .        ,   
      "-f".

          ,  
         .    "-r" -
             
      .

         "-i" ()  rm  -


                           110
                   AK.00210-01 33 01-5

             , 
         "-r" -     -
      .

       rmdir     .
           .

  :
      unlink

:
            
       -  "rm .*"

           "rm
      -r"     .








                           111
                   AK.00210-01 33 01-5

:
      rpl -  

:
      rpl  

:
       rpl        ,
            -   
       ,          
      .       -
          ,    -
       "ed"   ,   ,  
       "."      -
         "@".

      :
             rpl "^ *" ":" <a >b

        "a",         
         ,   -
         "b".

       rpl         -
           red,   -
        .



                           112
                   AK.00210-01 33 01-5

:
      sed -  

:
      sed [-n] [-e .] [-f ._] []...

:
       sed       
              ,
               -
      .

         sed     "-f",  
           "._";
               -
      .        -
       "-e"             
      "-f",      "-e"    .  
       "-n"  ,   e  -
        .   -
        ,     ,  
        :

            [ [, ]] _ []

        : sed      -
           , 
             
      ,      ;  
            

                           113
                   AK.00210-01 33 01-5

         ( ,   -
         -n).     -
      .

         :

      -       ,    
                (  
                   
            );

      -      "$" -      
             ;

      -     "  "     
               , 
             ed   ,   -
              "0     ,
               .

            ,  -
          .

           ,    
         ,  
       .

             (..    ,
        ),      -
      ,        -
          ,  -

                           114
                   AK.00210-01 33 01-5

       .       -
              ,
         ,    -
      .

         "!"     ,
              (acaa a oo c
      e cpoe),  peec oo   ,  -
           .

      ,  text,   ,  
       ,  ,  
      '/ ,      ,      escape-
       " ".  '/ -
              '/    
          s,      -
              
           ( '/ 
                
      );        -
       .

      ,  rfile  wfile,   
        ,   ;
                
      .    wfile   
      .       
          wfile.

      (1)a         text


                           115
                   AK.00210-01 33 01-5

            .  text      
                   
            .

      (2)b label
                ":"      label.  
            "label" ,     -
             .

      (2)c         text

            .  ""  ,  
                  ,     
              text.

      (2)d    .

      (2)D        
             escape- " ".

      (2)g        
             .

      (2)G       -
              .

      (2)h         -
              .

      (2)H         -
             .

      (1)i         text


                           116
                   AK.00210-01 33 01-5

            .  text     -
            .

      (2)n         
            .      -
             .

      (2)N        -
            ,     "'0.  
             .

      (2)p  .         -
              .

      (2)P          
                   
            .

      (1)q  .       -
            .

      (1)r rfile
              rfile.      -
                  -
             .

      (2)s/   /  / 
                  -
                    
            .     ed ,    
            '/'    .  

                           117
                   AK.00210-01 33 01-5

              .    :

            g     .    -
                      , 
                     ;

            p           ,
                     ;

            w file
                  .    ,  -
                    file  ;

      (2)t label
            .       
                  t   
                   ":"    
            label.    ,   
             ;

      (2)w file
            .     file;

      (2)x        -
              ;

      (2)y/1/2/
            .     ,
              1,    
             2.  1  2   -
            ;

                           118
                   AK.00210-01 33 01-5

      (2)! 
            .    "!" -
               ,      (
             ,     {...}  ),
                   ,  
               ,     
              ;

      (0):
                   -
            .         -
               t  b;

      (1)=  .   "="    -
                ,  -
                ;

      (2){       }  
               .

        .

  :
      ed, grep, awk, lex





                           119
                   AK.00210-01 33 01-5

:
      send -       

:
      send [-] [ ...]

      gath [-] [ ...]

:
       send    ,  -
          .    
           .    
         send   -
              ,
            
      SPOOL.      send  -
           
      vmpunch       .

             
        st.

       send      
             . -
         :

      -   ;

      -  ;

      -    .

                           120
                   AK.00210-01 33 01-5

          send  -
        ,        -
            .  
            send,  , 
               
            
      . ,   ~,  
        ,     send.
        ,      
              ,       ae
      epeex, opa     -
       .

      send    :

      ^-flags
                -
             send;

      ^+flags
               ,  -
              send;

      ^+:promt
               ;

      ^-:promt
            paceaa ocay, oo      
               ;

      ^!command


                           121
                   AK.00210-01 33 01-5

                    EMOC,   a
            eppeaop  SHELL.       
                /dev/null.
                   
               send;

      ^^comment
                    
            ,        
            send oo oo;

      ^=:keyword;default
                   
                     
             ,     
                  -
            ,     .  -
              o yoa, ec oc yca
            cpoa;

      ^keyword=string
               eo oepae;

      ^file         
                 send;

      ^*file
                    
            ,      -
                    -

                           122
                   AK.00210-01 33 01-5

                . 
                   
              acaoo paepa;

      ^?file
                    
                   -
                    -
                . 
                        
            80-ae ac;

      ^==keyword;n
              n    
              ,     
             ,     , 
             ,    -
              ,    .
            n    aee=1;

      -uUSER
              ,   
                (    
            ,  oay send);

      -cLINK
               ,      -
                (   yoa 'COMPLEX
            1');

                           123
                   AK.00210-01 33 01-5

      -l          -
                  aa;

      -q             OC
            EC;

      -f      cpox y  poce;

      -t         
                  aee;

      -         eypa-
            x cpo;

      -r      oa KO-8  KO;

      -          opeee  eoo
            coa;

      -i    e eppepoa     
              ,    . -
            :         oe
            epeycaoe;

      -s              
            eppeae ypax cpo;

      -d         
             ( epoaao  oa).

        (  ^)     
       pee +i eppepyc   
        send.  -s  -


                           124
                   AK.00210-01 33 01-5

            co oee  eppea
        send. send    -
          .   -
      .  ,  ,    
         ,   -
           ("  ").

      send     
              -
             .  
      send     SHELL   -
       C.      -
         ,    send  
       ,   .  -
               
         .   
         e coa, oop -
       .      
        ,      (  
       ,      -f).  
               
      -8,        .
           -
          (&),    
       .

       send     -
          ,  
       .     (-


                           125
                   AK.00210-01 33 01-5

        ^*file)    
         .

            -
          -.   -
        ,     -
      .      
           -e.

      send        
      .    ,    
              80   .   
         :    -
        ,           SHELL.
           ,   -
                send
          .

           gath   -
         -lq.      
         ,     demsend.
                  ,
        DEMROUTE.

:
      usr/spool/send *
                 .

 :
      sh, st, vmread, demsend

                           126
                   AK.00210-01 33 01-5

:
           80 -
      ,       
      .  :   y  
       - .













                           127
                   AK.00210-01 33 01-5

:
      sendmvt -        .

:
      sendmvt [_ [__ [_]]]

:
      sendmvs       
             
       .      -
               
      .

         sendmvt      
      ,         
      apaepax oepaopo   . 
             ,   , 
           .

       "__"     ,  
             
      .       -
          ,      
        .

                
        ,     .  -
        -    .    -
       y,  ,      -
          .     n,  

                           128
                   AK.00210-01 33 01-5

         ,    -
           .

      "_"    .    
            vmread   -
         .

:
      /usr/lib/model/sendmvt
                

      /tmp/sendmvt.*
            pee ypa a send

 :re
      send ,vmread








                           129
                   AK.00210-01 33 01-5

:
      sh, for, case, if, while, :, ., break,  continue,  cd,
      eval,   exec,   exit,  export,  login,  newgrp,  read,
      readonly, set, shift, times, trap, umask, wait  -  -
       .

:
      sh [-ceiknrstuvx] [] ...

:
       sh     -
        SHELL,     -
         .     SHELL  
             -
      .

      :

           
      ,   "" (,  -
          ).    -
          ,    .
            -
        .     -
       . ""       -
      ,     ,  200+ - 
       .

       ,   "|",  -
           . , -


                           130
                   AK.00210-01 33 01-5

                ,
                -
        .      -
        - .     -
       ; sh     -
         .

      _    
           ,  -
       ";", "&", "&&"  "||",    
        ";"   "&".  ";", "&"  "&&", "||"
         , ,  
        "&"  "|" ,   "&&"  "||".   -
      ,    _,   -
          ;  -
        ,       -
            ( -
      ).  "&&" ("||")    -
            ,   -
          (  ).   
               
          .

        _      -
          .

              -
      ,    .   -
          sh.

                           131
                   AK.00210-01 33 01-5

      for  [in  ...]
      do _
      done

                for "" -
                      "
            ...".   "in  ..." -
            ,     "in $@" (..
                   
            ).

      case  in
           [1 [|2]...) _;;]
            ...
      esac

               ""    
            ,    "_".
             "*"   .

      if _1
      then _2
      [elif _3 then _4]
      [else _5]

               "_1"  ,
               "_2",    -  "-
            _3" ,        
            ,   "_4".  
              "_5".

                           132
                   AK.00210-01 33 01-5

      while _1
      [do _2]
      done

               "_1"  ,
             "_2"   ,
             -   .

      until _1
      [do _2]
      done

                "_1"    
            ,  "_2"   -
            ,  -   .

      (_)
             "_",    sh    -
             .

      {_;}
             "_".

          sh 
        :  "if", "then", "else", "elif", "fi",
      "case", "in", "esac", "for", "while",  "until",  "do",
      "done",  "{",  "}".      -
      ,        -
        .

         :

                           133
                   AK.00210-01 33 01-5

            (``),  
             -
        .     -
                ; 
        .

        :

       "$"      -
       .  set   -
       .    -
       :

                =  [ = ] ...

      ${}
            ""    : 1)  -
              ,    
            (..  ""), 2) , 3)   
              * @ # ? - $ !.   
                 
              (  ). -
                  , -
                ""   ,  
             ,      
            .  ""   ,
               .    ""
               *  @,  
               ( 0), -

                           134
                   AK.00210-01 33 01-5

             .

      ${-}
             "" ,   -
            ,   "".

      ${=}
             ""  ,   -
             ""     -
            .        
               .

      ${?}
             "" ,   -
            ;     ""   -
                .    ""  -
            ,    -
             .

      ${+}
             "" ,  "", 
                .

             ,   
      "",    ,  ""  -
        . ( ,  -
        "echo  {d-`pwd`}"    pwd   
            d  ).

       ""     -
       sh:


                           135
                   AK.00210-01 33 01-5

      #       ;

      -     ,       
             set;

      ?         ;

      $       ;

      !         .

       "" ,   
      :

      HOME           (
              -     )
              cd,   ;

      PATH    ,   
             ,    -
            ;

      MAIL            
              ,  sh   -
                  ;

      PS1        ,  
             "$";

      PS2         
            (         
            ),   ">";

                           136
                   AK.00210-01 33 01-5

      IFS   -    ;   
            ,      .

       :

       ,     -
          , 
       - (   $IFS).  
            
       .    ,  
        (" "  ' '), .  , -
          ,    
       , .

        :

                     -
               
        *, ?,  [.        
        ,        
          , -
           .    -
              ,    
          .  "."   
         .

      *       ,    ;

      ?        ;

      [...]      .

                           137
                   AK.00210-01 33 01-5

              ,    "-", -
                 -
             .

      :

              -
        sh      -
      ,     : ";",  "&",  "(",
      ")", "|", "<", ">", _, , .

         ,     
      .           
      ,      "0
      .    ,     ('
      '),    ,   -
      .     -
               ("
      ").     , `, "  $.

      "$*"  "$1 $2 ..."
      "$@"  "$1" "$2" ... .

      :

        ,   ,  sh
           PS1 (  - $).
            -
       ,     -
             
      PS2 (  -  >).


                           138
                   AK.00210-01 33 01-5

      -:

         /  -
        .        
        .      ""  
      ""    .

      <
             ""    -
             (  0).

      >
             ""     -
              (    1).      -
            ,  ;       
               .

      >>
             ""     -
            .   ,  
               ;    -
              .

      <<
                ,   -
                "". -
                      
             .  -  "" -
            ,    
                ;    

                           139
                   AK.00210-01 33 01-5

                  
                 ,    
              ,       
                  ,  $, `  
             "".

      <&
            ,       
            "",     .

      >&
                         
             "".

      <&-        .

      >&-        .

       -     
      ,       
        ( 0  1  ).

       :

             
           ,  
      ,         -
        /.

      :             ,   
                 -
            .    .


                           140
                   AK.00210-01 33 01-5

      . 
               ""      
            .

      cd []
            '   ""  .  
               ,    
               HOME.

      eval [ ...]
                   "-
             ...".

      exec [ ...]
                   
            " ...".   -
              /.

      exit [N]
                  
             N.  N ,  
                  -
             .

      export [...]
               
                   . 
                ,        
             .

      login [ ...]


                           141
                   AK.00210-01 33 01-5

                  
               (  "exec login
            ...").

      newgrp [ ...]
                 -
             (  "exec newgrp ...").

      read  ...
                     
            .   " ..." -
               ,  -
                .     
               ,   ,    
              ,      
            .

      readonly  ...
                     
            .    , -
                ,  
             "readonly" (  ).

      set [-eknptuvx [ ...]]
                  sh.
               :

            -e          -
                       
                   ;

                           142
                   AK.00210-01 33 01-5

            -k       -
                      ;

            -n        
                  ;

            -t         ,
                         -
                  ;

            -u        
                      -
                  ;

            -v         
                     ;

            -x            
                   ;

            -       -x  -v.
            "-".
           -
        "1, 2, ...".     ,
          ;

      shift   "2, 3, ..." 
              "1, 2, ..." ;

      times  ,    -
               ;

                           143
                   AK.00210-01 33 01-5

      trap [] [N ...]
                
             "";

      umask [ddd]
                
              ddd .   ddd ,
               ;

      wait [n]
                  
            n      -
             "?".

       :

          "0"    "-",
             .profile.  
         :

      -c 
               "";

      -s         .
                   -
               (   2);

      -i       .

:
      $HOME/.profile
      /tmp/sh*


                           144
                   AK.00210-01 33 01-5

      /dev/null

  :
      csh, test, exec

:
      ,    (,  -
       ),   ,  sh -
        ,   .    
        -  ,     
       .       -
      ,  sh     -
       .










                           145
                   AK.00210-01 33 01-5

:
      size -   ' 

:
      size [...]

:
       size  ()  , -
         ,    bss, 
                 
        '  "",   -
      .









                           146
                   AK.00210-01 33 01-5

:
      sleep -     

:
      sleep 

:
        sleep          ""
      .       
        , :

            (sleep 105; )

            , ,

         while true
         do
         
         sleep 37
         done

:
      ""    2 147 483 647 .






                           147
                   AK.00210-01 33 01-5

:
      soelim -       pif.

:
      soelim [...]

:
         (    
        )    ,  -
       pif :

            .so _

        .    -
      ,    tbl,     ,  soelim
      ,     -
          .

      ,          -
        "'"  ".", ..

            'so /usr/lib/tmac.s

         soelim:

            soelim exum?.n | tbl | pif -ms | col | lpr

  :
      colcrt, more

:
               ,  
           .


                           148
                   AK.00210-01 33 01-5

:
      sort -    

:
      sort [-mubdfinrtxz] [ +1 [-2] ]...
           [-o ] [-T ] []...

:
       sort     
             -
      .         (    
      "-"),         
      .

             -
      .      -
       (     )  -
              
        -8 (    ).
           , -
          :

      b          
              ;

      d     " ":     
             ,   ;

      f          ;

      i       -8    -

                           149
                   AK.00210-01 33 01-5

             040-0176  0300-0376   -
            ;

      n          (    -
             ),   -
             .  "n"    -
              "b";

      r         ;

      tx    " ",  , 
             "x";

      z           
            .

       "+1 -2"   ,  
         .  
         "1"        
      "2".    "1"  "2"  
      "m.n",         
       bdfinr,  m   , -
            ,  n -
        ,    -
        .     -  ,
                 
        .        "b",  "n"
         (  ) -
        ;  "b"           "2".
       ".n"  ".o",  "2" -

                           150
                   AK.00210-01 33 01-5

        .    "-tx"  -
        ,  -
       "x",   "-tx"         
                 
       ,  .

          ,  
            ,  
        . ,     
       ,     .

          :

      c     ,       -
                      
            ;   ,  
             ;

      m      ,    ;

      o          -
             ,    
              .     -
                 ;

      T           -
            ,      
            ;

      u                
             .      -

                           151
                   AK.00210-01 33 01-5

                .

:
                  
        "".     
          .

            sort -u +0f +0 

          /etc/passwd,  
             ( 
        ):

            sort -t: +2n /etc/passwd

              -
          (dates).    "-um"  
               
         .

            sort -um +0 -1 dates

  :
      uni, comm, rev, join

:
               -
              ,
          "-c".

:
           .

                           152
                   AK.00210-01 33 01-5

:
      split -    

:
      split [-n] [ []]

:
       split   ""        
      ,      n    
      (  - 1000).        
              n,  
         .       
         ""   "aa",   
        .     -
      ,    .

              -
       "-",    .








                           153
                   AK.00210-01 33 01-5

:
      st -        
             .

:
      st [] _

:
       st        -
           ,   -
           "_".    
         "",   -
       complex1.

                 
      ,        , -
               
      .          ,
           st  
       .

:
      /dev/smsg?





                           154
                   AK.00210-01 33 01-5

:
      strip -   .

:
      strip  ...

:
       strip       -
      ,           -
         .     
        ,    .

        strip    ,    
       "-s"   ld.

  :
      ld







                           155
                   AK.00210-01 33 01-5

:
      stty -    .

:
      stty [ ...]

:
       stty       -
      /     .  
                .
          :

      even        ;

      -even       ;

      odd         ;

      -odd        ;

           "-even -odd".

      raw      (  (kill),
             (erase),  (quit),  -
             (EOT);     -
             );

      -raw     ;

      cbreak
                read(2)    
            ;         (kill)    
            (erase);


                           156
                   AK.00210-01 33 01-5

      -cbreak
                read   
               ;

      -crmod
                  
             ;

      crmod     -
             (CR)     (NL); 
                  -
               -   (CR-NL);

      echo    -  ;

      -echo     -;

      lcase      -
              ;

      -lcase
                ;

      -tabs      ;

      tabs    ;

      cyrill
               ;

      -cyrill
                ;

                           157
                   AK.00210-01 33 01-5

      icyrill
               (/)  -
                  (
            15  0013,   "" );

      -icyrill
               (/)  -
                ( 15  0013,
               ""  );  
               "" .

      dec     ,    
                RSX-11, RT-11: ("", <control>u,
            <control>c).

      ek     ,  "dec".

      unix    ,    
                 UNIX: ("#", "@", <>). 
            "quit"  <control> .

      erase c
              c     .
                  ^x, 
             <ctrl>x;

      kill c
              c     .
                 ^;

      intr c

                           158
                   AK.00210-01 33 01-5

               c      
            "interrupt".        
            ^;

      quit c
              c      
               "core".   -
               ^;

      nl cr ht vt n
                  
              n ;

      width n
               (  )    n
                ;

      lengh n
            o    n ,    
                ;    length 0,
               ;

      score         (kill)  
             (erase);

      -score
              score;

      indctl
              control-     -,   
            ^<char + 0141>;

                           159
                   AK.00210-01 33 01-5

      -indctl
              indctl;

      hup        
               ;

      -hup        -
                ;

      0        ;

      extb speed
                  
                 "speed".  "speed" 
             : 75, 110, 134, 150, 200, 300,
            600,  1200,  1800, 2400, 4800, 9600 ( -
               dh  dz);

      cro cr1 cr2 cr3
                 ;

      nl0 ln1 nl2 nl3
                  .

  :
      tty, ioctl, tabs.




                           160
                   AK.00210-01 33 01-5

:
      su -    .

:
      su [_]

:
       su      -
             -
      .      -
          ,     
              .  
            -
            .

           su    -
      ,     -
      (root).  ,  -     -
       , sh    "#".

  :
      sh






                           161
                   AK.00210-01 33 01-5

:
      sum -      

:
      sum file ...

:
      Sum    16-    
           .   -
              -
         ,   
      .

  :
      wc

:
      read error
             .     -
                    
            (,    , -
                   ).   ,
                  -
                .




                           162
                   AK.00210-01 33 01-5

:
      svc -    .

:
      svs  []

:
      svc   ""   "-
      "        -
       .

           ,  
      ,       
      popa.

       time     
      ,     . 
      svc     o o, a o  o
      pe o opaeo.  mon   -
             -
      .





                           163
                   AK.00210-01 33 01-5

:
      sysname -    .

:
      sysname

:
       sysname        
      .

 :
      ipl










                           164
                   AK.00210-01 33 01-5

:
      tail -   

:
      tail [+-[lbc]] []

:
       tail       
      ,    .    
      ,    .

         ,    -
        "+"     "-"   .
      ""    ,   -
               "l", "b"
       "c".     ,      
      .

  :
      dd

:
          ,      
      ,        .

              -
       .




                           165
                   AK.00210-01 33 01-5

:
      tape -     

:
      tape  [-muwq] [-nl] [-blp]
            [-sl  _]  [-d   ]   [-c   -
            _] _

:
           ,
           .  -
        ,    
        ,     -
               
       .

       :

      -m     .      -
            ,    -u;

      -u     .     -
            ,     . 
                ;

      -w       .   
                 ;

      -q        
            ;

      -nl       .    


                           166
                   AK.00210-01 33 01-5

              ;

      -blp            
            .     -
             ;

      -sl           
              ,  "_"     
            ;

      -d            .  
             63 /;

      -c      ,   -
              "-"  K  
             .    -
              %s       
                  "-"
              tape  -m-c"cat %s>blot" GLOP84 
              GLOP84   blot.

:
      eo ce poecc      -
         ,   -
        .    -nl, -sl, -blp
          .

       -nl     ,      
          .

       -sl       

                           167
                   AK.00210-01 33 01-5

             .

       -blp     -
          .     
       .

:
      /usr/spool/out/t*
            spool  

      /usr/spool/out/.spoolpid
              spool

      /dev/tape/??????
               

      /dev/mt?
               

      /dev/tape/lock18

 :
      opr, vmpunch, label, spoolr, tm





                           168
                   AK.00210-01 33 01-5

:
      tar -     

:
      tar  [ ...]

:
         tar    
           .   -
              "".  ""
            (r,x,t,u
        c),     ,            -
      .    
         ,    -
        .

      Tar   :

      r             
            .     ;

                 .  
                ,    
              ,       
             (   ). -
                    (
              ).      -
              "",         
            .          ,
                ,  -

                           169
                   AK.00210-01 33 01-5

                  ;.

      t               ,
                   .  
            ""  ,       
            ;

      u             
            ,          -
                  ;

      c         .     
            ,     .

          :

      1,2           -
              ,     ( -
               12,     "TAPE";  -
                   "TAPE",  
              .  "TAPE"   -
                      "tar",  "mt",
              "ardos"      "sh"  
              (       ,            /dev/mt580):
              "TAPE=/dev/mt580; export TAPE";   "csh"  :
              "setenv  TAPE /dev/mt580".    -
                "f".);

      v          v  tar 
                        -
               -.     


                           170
                   AK.00210-01 33 01-5

              t,         ,
                 ;.

      w         tar    
               ,    -
               .    
              :  "y"  -  , "n" - -
               , "=" -   
                      ,  
                    "",  "#"  -
                ,     
                 "";.

      f         tar   
                          
              /dev/mt?.       "-",  tar
                     -
               .  ,  -
                 tar           
              . Tar      -
                     -
              

              cd from; tar cf - * | (cd to; tar xf -);

      b         tar   
                   
                .         1,
                    127.   

                           171
                   AK.00210-01 33 01-5

                       
                 /dev/mt?;

      i             
                 ,  , 
              ,       
                . Tar     -
                  ;

      l           
                   .
                  ,    
               .

                  512
        (,      -
       ).        ,
           -.
                
      .         
        "mt"    .

:
      /dev/mt*
      /tmp/tar*

:
              -
       /.

             -


                           172
                   AK.00210-01 33 01-5

      .

:
         n-  .

       u   .

        ,        ""
          ,        
       "TAPE"     "f",  
          1.

                 
       100 .










                           173
                   AK.00210-01 33 01-5

:
      tbl -  .

:
      tbl [] ...

:
       tbl     -
          pif      
      .           
      ,    ,   
       .TS  .TE (..    ),  
          .

           ,  tbl  
          ,     -
        .  ,    tbl  
          eqn  neqn,     
      ,    '  ,  
        .

 :
      pif, eqn

:
          re      ""
      opaee  c  oa ay ocaoo pooo,
      p   tbl    .

:
         txt   :


                           174
                   AK.00210-01 33 01-5

      .TS
      center tab(&);
      c s s
      c s s
      c c c
      l n n.
      - 
       48   .
      &&
      &56767&12-00
       &56769&8-16
       &56770&7-68
      &56772&5-28
       &56796&8-16
      &56797&8-16
      .TE

         

          tbl  txt | pif



         :

             - 


                           175
                   AK.00210-01 33 01-5

           48   .
                                   
                    56767    12-00
           56769     8-16
              56770     7-68
                     56772     5-28
          56796     8-16
                     56797     8-16












                           176
                   AK.00210-01 33 01-5

:
      tee -  .

:
      tee [-i] [-a] [] ...

:
       tee       
                
       .   :

      -i       ;

      -a      ,      
            .









                           177
                   AK.00210-01 33 01-5

:
      test -  .

:
      test 

:
       test   "" ,   -
      ,     ;  -
         .      ,
         .

        ""   :

      -r 
            ,          
            ;

      -w 
            ,       -
            ;

      -f 
            ,           
            ;

      -d 
            ,        -
            ;

      -s 
            ,          


                           178
                   AK.00210-01 33 01-5

            ,  ;

      -t [fildes]
            ,      ,     
                  fildes ( 
            1),   ;

      -z s1 ,   s1   ;

      -n s1 ,   s1   ;

      s1 = s2
            ,   s1  s2 ;

      s1 != s2
            ,   s1  s2  ;

      s1    ,  s1    ;

      n1 -eq n2
            ,    n1  n2  
            .    -eq     
             : -ne, -qt, -ge -lt  -le.

             -
        :

      !        ;

      -a      ;

      -o      ;

      (  )


                           179
                   AK.00210-01 33 01-5

               ;

       -a       ,
        -o.       -
        test.    -
                 
          .

  :
      sh, find











                           180
                   AK.00210-01 33 01-5

:
      time -    .

:
      time 

:
        ,    time
        ,    -
       , ,  ,  -
      ,    .  
               
      .

:
             ,
              -
        1/50 .  ,   
           ,   -
      .






                           181
                   AK.00210-01 33 01-5

:
      touch -    .

:
      touch [-c]  ...

:
       touch      -
       ,     "".
                 
       .

         ,    
      ,   ,    -c.










                           182
                   AK.00210-01 33 01-5

:
      tr -  .

:
      tr [-cds] [1 [2]]

:
       tr      -
             -
       .  ,   -
      ,   "1",   
        "2".   2 ,  -
          1   -
       .     
       -cds:

      -c        "1"   -
            ,     -8 -
              01  0377;

      -d       ,  -
               "1";

      -s         -
            ,   "2",   .

        A-Z          
          A    Z      -8.
       '/,    1, 2  3 
      ,   ,  -8  
       .      '/    -


                           183
                   AK.00210-01 33 01-5

       ,    .

              file1
             file2,    -
        .       -
          ,  ""  '/  -
        .  "012"  
       -8      .

            tr -cs A-Za-z ' 12' <file1 >file2

  :
      ed

:
              -8  nul  
      "1"  "2",   nul  .







                           184
                   AK.00210-01 33 01-5

:
      true, false -   "" ("").

:
      true
      false

:
       true   ,        
          .  false  
       .         -
        sh, :

        while true
        do
        
        done

  :
      sh






                           185
                   AK.00210-01 33 01-5

:
      tsort -  .

:
      tsort []

:
       tsort         -
         ,  
          ,     
          "".   ""  ,
         .

             (
      ),   .   
       .    
      ,   .

  :
      lorder

:
      odd data:
                 .





                           186
                   AK.00210-01 33 01-5

:
      tty -   .

:
      tty

:
       tty      -
      .

:
            , 
        "not  tty".









                           187
                   AK.00210-01 33 01-5

:
      uncompact -   .

:
      uncompact [...]

:
       uncompact  , -
               compact.  
          ".C".   
             ,  
       ".C".   
      .       , 
          
        ,       
       .

:
           ..

  :
      compact, ccat






                           188
                   AK.00210-01 33 01-5

:
      uniq -      .

:
      uniq [-udc [+n] [-n]] [filein [fileout]]

:
        uniq            
      "filein".        
      ;        
      .       "-u",  
       . K "-d" ,  
             . 
       "-u"  "-d"  .

       "-c"    "-u"  "-d"  -
       ,      
               
          .

       "n" ,      
          :

      -n      "n"     -
                .   
              (     -
            ),        
              .

      +n      "n" .  -
              .


                           189
                   AK.00210-01 33 01-5

  :
      sort, comm














                           190
                   AK.00210-01 33 01-5

:
      units -   .

:
      units

:
       units        
        ,    
      :

      you have: inch
      you want: cm
          * 2.54000+00
          / 3.93701-01

              
      ,    -
      .      ,  
           :  -  -
      :

      you want: 15 pounds forse/in2 you want: atm
          * 1.02059+00
          / 9.79730-01

       units    -
       .  ,    -
         ,       
            .  
       ,    ,


                           191
                   AK.00210-01 33 01-5

         :

      pi        ;

      c      ;

      e      ;

      g       ;

      force  ,  g;

      mole   ;

      water    ;

      au     ;

      Pound  .

         .   
      ,      -
          ,      br   (,
      brgallon).        
                  (,
      britanpound).

          ,    
      /usr/lib/units.

:
       ,       ,
                       
      /usr/lib/units.


                           192
                   AK.00210-01 33 01-5

:
      vmid -   

:
      vmid

:
          a
      , oopo paoae  .

 :
      vmid










                           193
                   AK.00210-01 33 01-5

:
      vmmsg -    

:
      vmmsg  [ ...]

:
           
          .    
              .
             coep cooee ,o 
          .  -
        - 100 .










                           194
                   AK.00210-01 33 01-5

M:
      vmpunch - t   .

:
      vmpunch [-rhdsqo] [-v ] [-i ] [-t ]
            [-c ] [-f _]  [-u  ]  [-x  -
            [:]] []

:
       vmpunch    (  -
        caap  o,  ec aoo   )
         .     -
             
          , ec
      o e yaa, o    /etc/passwd.

      -r    oae peopaoae   -8  ;

      -h       ;

      -d         ;

      -s       "stream".  -
               "TWO BYTE <LENGTH> <DATA>...";

      -q          
              ;

      -     .   -
                   
            ;

                           195
                   AK.00210-01 33 01-5

      -v 
            eaop BM, oopa  . 
                  COMPLEX.VMID,  
                    ,
                COMPLEX.  -v  -
            ,          
            /etc/passwd;

      -i       -
                 paa oaa ao,
            ec     ;

      -f     "t_"  aece e, oopoe
              .  Ec e coyec, o 
               ooo aa, ec  o
            e  caap o,  o  
            "from.punch";

      -c      .  ;

      -      .  -
                 ;

      -u       -
                   EMOC, paoae
            a .       userid
              ;

      -       /usr/spool/bin  -
                    
                  .


                           196
                   AK.00210-01 33 01-5

            
             .    -
        send.

             
          epea    
        o .   
           -i  -x.

 :
      send, vmread, spooler










                           197
                   AK.00210-01 33 01-5

:
      wc -  .

:
      wc [-lwcpt] [-b] [-s_] [-u]
         [-v] [...]

:
       wc   , ,   
      ( )       
         .      
      "",        -
        .      
       ,  ,  -
          .

      ,   ,      "l",
      "w",  "c", "p",  "t"    
      (l),  (w),  (c),   (p)  -
        (t).

      -b ,    ("") 
                (300 ).

      -s_
               (  66 ).

      -u    ,        
                 .

      -v       .

                           198
                   AK.00210-01 33 01-5

:
        , ,    wc.1  -
          :

          wc -lwcpt -v wc.1

             -
       :

      lines words chars pages time@300
      42    86    1312  1     43.0 se  wc.1

:
              -
          ,  ..









                           199
                   AK.00210-01 33 01-5

:
      whatis -     .

:
      whatis name ...

:
       whatis         
              ("name").
              -
          man.

:
      /usr/lib/whatis    

  :
      man, catman, apropos







                           200
                   AK.00210-01 33 01-5

:
      whereis -  

:
      whereis [-sbm] [-u] [-sbm  ... -f] name

:
       whereis       -
          ("name")       
      .       
        ,      ".c", ".bak" ".etc" 
      ..,  .      -
       .

            :

      -s       ,  -
               ( , -
                   
            );

      -b       ,  -
                 ( , -
                 );

      -m       ,  -
            . ( ,  -
                        
            );

      -u           ,  

                           201
                   AK.00210-01 33 01-5

                    -
              "name".

      -f       .

       "-b", "-m",  "-s"     -
            whereis.   -
      ,        
      ,    .

:
             -
      ,        -
         :

            whereis -u -m /bin

:
      /bin/*
      /usr/bin/*
      /usr/lib/*
      /etc/*

            chdir,  
      ,      , 
       .



                           202
                   AK.00210-01 33 01-5

:
      who -    .

:
      who [who-] [am i]

:
       who      
             , 
         .      ,
              
       .     
        "x"       -
        .

         , ,  "who  am  I"  (
        "who are you"), who     
        .

:
      /etc/utmp

  :
      getuid, utmp





                           203
                   AK.00210-01 33 01-5

:
      write -    .

:
      write _ [_tty]

:
       write       
        .   -
      ,   :

            Message from "username" "ttyname"..

               
             .
        , write     
      "EOF"   .

           , 
             , 
        "_tty"  ,    -
         .

         mesg      
               .  
       .  ,   re,
       pr,        -
       ,    .

          "!",  write  
         ,   

                           204
                   AK.00210-01 33 01-5

        .

        write    
        :      
      ,  ,       ,
          .    -
              "".  
      "" ,     .

  :
      mesg, who, mail










                           205
                   AK.00210-01 33 01-5

:
      xstr -          
       .

:
      xstr [-c] [-x] [-] []

:
       xstr      
                 ,
         .         xstr
          "strings",       
                .   
                -
            "&xstr[]".

           "Messages",   
             (  12  )
       .      
           "Xsline()",  -
               
        .

           .  "xstr"
            -
       ,       -
         .

      

      xstr -c 


                           206
                   AK.00210-01 33 01-5

         "",     
              ,     
        &xstr[].     -
        '    xstr. 
            x.c     
      .       
      strings,        .  
         ,    -
       ,        strings.
       ,      -
      ,     xs.c,  -
        xstr,    :

      xstr

        xs.c        
         .  xstr  -
         "data"   "text",  (,
              
      ".data"  ".text"   ).

      Xstr      . :

      xstr 

      ,   ,  .c  xs.c,   
          strings    .

       xstr     -
       ,  -  
               


                           207
                   AK.00210-01 33 01-5

      ,  ,   
        .         "-",   xstr
          .   xstr
            
       :

      cc -C -P .c
      xstr -c .i
      cc -c .c
      mv .o .o
      rm .i

          , xstr    
       strings;  ,   
       xs.o,   ,    -
       .

      :

      xstr -x -c 

          "Mesages",   -
            "x.c",       
       "Xsline()",  "" -    
        "Messages".       
       Xsline. :

      xstr -x

        "xs.c",     Xsline.
               

                           208
                   AK.00210-01 33 01-5

                   
      "XSFILE":

      cc -O -c -DXSFILE=

                 
      :

      /*NOXSTR*/
                   "xstr  -c"  
              ;

      /*NOXXSTR*/
              ,    "xstr -c -x";

      /*YESXSTR*/  /*YESXXSTR*/
                 .

      , ,  xstr   -
      ,        cc "-C"
       ,     .
         "xstr -c"    -
          :

      char x[]="";

           ( "xstr -c -x") -
            ,
        ,       
       .    ,   -
         Xsline    -
      .


                           209
                   AK.00210-01 33 01-5

        "xstr -x -c"   ,  
          "ldover",  "Messages"
                  
      "V.out.a";        Xsline ( xs.c)
        .

:
           ,  
             xstr,  
      "strings"   ,    
           .










                           210
                   AK.00210-01 33 01-5

:
      yacc -  .

:
      yacc [-vd][-f ] 

:
      Yacc     
          ,   -
        .      
      ,     -
        ,  .

             
      ,         yyparse.
              -
          yylex,   
      main     yyerror.   -
         .   
      ,     yacc,  -
       lex.

         -v, yacc   y.output, -
            -
        ,     -
      .

         -d,    
      #define,      "
      ",  yacc,   ,  '-

                           211
                   AK.00210-01 33 01-5

       .    
             .

         -f,   -
            ,   
         , "".  
       "/usr/lib/yaccpar".

  :
      lex

:
               
      reduce-reduce    shift-reduce.  , 
            .

:
         ,          
              
        yacc.
                            2
                   AK.00210-01 33 01-5

                        

             
 ,    -
 .     
     -
 .         
  .      
     .


                            3
                   AK.00210-01 33 01-5

                        

 1.   .........................   4
............................................   5


Last-modified: Mon, 29 Jun 1998 13:53:10 GMT
: