shell脚本

$ printf "the first is %s,%s""\n" hell woe;                     

the first is hell,woe

$

 

$ clear

 

$ echo $he

hello

$ he=lllll

$ echo he

he

$ echo $he

lllll

 

$ cat >zst

who |wc -l   //到这里ctrl+D 表示end-of-file

$ ./zst

sh: ./zst: Execute permission denied.

$ chmod +x zst

$ zst

59

你可能感兴趣的:(shell脚本)