".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.