激с鴻 Linuxラ膩

maya
篁ャLinux泣若 激с鴻 ゃ荅宴

 

激с鴻

maya
激сゃ荅宴篁激с鴻ゃ荅宴

nao

maya
激с鴻違巡擦с激су篏

nao
激с激с鴻鐚

maya
激с違篏с激с鴻違c罨蚊篋膾腴c

nao
若cс<

maya
絎荀帥

 

Hello world

maya
障篁<ゃ腆肴篁激с鴻<ゃ3ょ

 

1. 激с鴻<ゃ筝荀с腆肴

[guest@centos7 ~]$ ls
helloworld.sh helloyou.sh kuku.sh

 

maya
激с鴻***.sh<ゃт紊障羆冴障”Hello world”荀帥

nao
Hello wordl??

maya
違с篏荅篏帥障cat潟潟с<ゃ筝荳腆肴

 

2. helloworld.sh 絎鴻腆肴

[guest@centos7 ~]$ cat helloworld.sh
#! /bin/bash

echo "Hello world!"

 

maya
1茵激с篏帥絎h

nao
腆冴 Linux罔羣”bash”c鐚

maya
bash篏帥1茵ф吾

nao
3茵鐚

maya
”Hello world!”茵腓冴吾

nao
泣若

maya
с激с鴻<ゃbashу茵帥

 

3. bash helloworld.sh 絎茵

[guest@centos7 ~]$ bash helloworld.sh
Hello world!

 

maya
激с鴻巡擦緇c”Hello world!”茵腓冴障

nao

maya
鐚障鐚腱”Hello world!”莎ゃ<e0ゃ潟激с潟筝

nao
鐚mayac紊…鐚

maya
nao

 

ュ絎鴻阪

maya
罨<helloyou.sh激с鴻障絎鴻腆肴

 

1. helloyou.sh 絎鴻腆肴

[guest@centos7 ~]$ cat helloyou.sh
#! /bin/bash

echo "*** who are you ? ***"
read you
echo "*** Hello $you !! ***"

 

nao
c絨激

maya
篁”read”篏帥激с絲乗宴с絎茵帥

 

2. bash helloyou.sh 絎茵

[guest@centos7 ~]$ bash helloyou.sh
*** who are you ? ***

 

nao
罩≪障c<c鐚

maya
”nao”ュ帥

 

3. nao ュ

[guest@centos7 ~]$ bash helloyou.sh
*** who are you ? ***
nao
*** Hello nao !! ***

 

nao
“Hello nao !!”茵腓冴

maya
篁you紊違”nao”荐吟阪

nao
鐚鐚鐚

maya
鴻若

nao
若鐚

maya

nao
≪ゃ≪ゃ

maya
羂篋篋

 

箙箙茵阪

maya
緇箙箙茵茵腓冴鴻絎鴻腆肴帥

 

1. kuku.sh 絎鴻腆肴

[guest@centos7 ~]$ cat kuku.sh
#! /bin/bash

echo "************ kuku ************"
for ((x=1 ; x<10 ; x++))
do
  printf "*"
  for ((y=1 ; y<10 ;y++))
  do
    z=`expr $x \* $y`
    printf "%3d" $z
  done
  echo " *"
done
echo "************ kuku ************"

 

nao
篁障сc

maya
сс激с鴻bashу茵箙箙茵篏<cc帥

 

2. bash kuku.sh 絎茵

[guest@centos7 ~]$ bash kuku.sh
************ kuku ************
*  1  2  3  4  5  6  7  8  9 *
*  2  4  6  8 10 12 14 16 18 *
*  3  6  9 12 15 18 21 24 27 *
*  4  8 12 16 20 24 28 32 36 *
*  5 10 15 20 25 30 35 40 45 *
*  6 12 18 24 30 36 42 48 54 *
*  7 14 21 28 35 42 49 56 63 *
*  8 16 24 32 40 48 56 64 72 *
*  9 18 27 36 45 54 63 72 81 *
************ kuku ************

 

nao
綵箙箙茵茵腓冴鐚

maya
筝茘違с鐚с違潟

nao
cс篏

maya
絎1茵1茵潟荅怨Linuxラ膩違潟医ラ膩紊c<

nao
違潟医ラ膩篏

maya
罘篌違激с違ャ篋違篋級堺ャф綵罐純

nao

絎茵罔

maya
荅宴障罘篌у茵罔ゃ腆肴帥

nao
絎茵罔祉祉祉祉祉誌

maya
綽<c若激с喝ц宴茯粋昭炊┤吾莨若炊┤ゃ粋Е罧絎茵罔ゃ絎茵<c篁障цсc

nao
篁障с<ゃ茯膩鐚吾鐚c

maya
激с鴻絎茵罔筝сbash ***.shс<ゃ絎у茵ссc帥

 

1. 激с鴻若激с潟腆肴

[guest@centos7 ~]$  ls -l
荐 5
-rw-r--r--. 1 guest guest  34  3 20 21:00 helloworld.sh
-rw-r--r--. 1 guest guest  81  3 20 21:05 helloyou.sh
-rw-r--r--. 1 guest guest 228  3 20 21:10 kuku.sh

 

2. 絎茵罔倶篏腆肴

[guest@centos7 ~]$  ./kuku.sh
-bash: ./kuku.sh: 荐怨障

 

3. 絎茵罔篁筝

[guest@centos7 ~]$  chmod 755 kuku.sh

 

4. 激с鴻若激с喝眼腆肴

[guest@centos7 ~]$  ls -l
荐 5
-rw-r--r--. 1 guest guest  34  3 20 21:00 helloworld.sh
-rw-r--r--. 1 guest guest  81  3 20 21:05 helloyou.sh
-rwxr-xr-x. 1 guest guest 228  3 20 21:10 kuku.sh

 

5. 綺絎茵

[guest@centos7 ~]$  ./kuku.sh
************ kuku ************
*  1  2  3  4  5  6  7  8  9 *
*  2  4  6  8 10 12 14 16 18 *
*  3  6  9 12 15 18 21 24 27 *
*  4  8 12 16 20 24 28 32 36 *
*  5 10 15 20 25 30 35 40 45 *
*  6 12 18 24 30 36 42 48 54 *
*  7 14 21 28 35 42 49 56 63 *
*  8 16 24 32 40 48 56 64 72 *
*  9 18 27 36 45 54 63 72 81 *
************ kuku ************

 

nao
絎茵罔激с鴻<ゃ絎茵с

maya
с篁障ャ

 

 

  • 激с鴻違巡擦
  • 激с激с鴻違
  • 激с鴻荀Linuxц蚊篋堺ャ

 

鐚鐚若祉鐚鐚