.


:




:

































 

 

 

 





; . . . $().

$ () . , , , .

#!/bin/sh

echo The current directory is $PWD

echo The current users are $(who)

exit 0

, . who, , , .

, whoisthere=$(who)

- , . , , , xargs .

. , , .

<<, , . << , . , , . , .

17.

#!/bin/sh

cat <<!BUILTdoc!

!BUILTdoc!

17

 

, . , echo , . .

. 5.

5.

sh n <>
sh v <>
sh x <>
sh u <>

 

 

1. stat.

2. .

, , :

- ;

- ;

-, ;

-, .

, , , ( ) , .

, . .

, , .

, , , shell.

N ,

Ai+1=Ai+Ai-1

N .

 

6

 

6.

( )
 
 
  , a b
  ,
  , , ,
  , , ,
  , , ,
  , , , ,
  . , 1000000. a b %
  , , : , inode, , ,
  , .
  printf, .

 

 

  1. .
  2. . :

- .2 ;

- ( ).

 

 

  1. echo printf
  2. stat




:


: 2017-02-11; !; : 469 |


:

:

! . .
==> ...

1659 - | 1447 -


© 2015-2024 lektsii.org - -

: 0.013 .