; . . . $().
$ () . , , , .
#!/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, . |
- .
- . :
- .2 ;
- ( ).
|
|
- echo printf
- stat