首页 > 代码库 > shell脚本之for循环

shell脚本之for循环

#! /bin/bash
echo what  programming lanuages do you know?
for i in python C# java ruby perl
do
echo i know : $i
done

  

[root@lenny Desktop]# ./for.sh 
what programming lanuages do you know?
i know : python
i know : C#
i know : java
i know : ruby
i know : perl

  

shell脚本之for循环