2007年7月4日 星期三

shell script : string for loop

[will@localhost ShellScript]$ cat for.string.sh
#!/bin/sh

for animal in elephant dinosaur kangaroo
do

echo "There are ""$animal"" in the zoo."
done

[will@localhost ShellScript]$

沒有留言:

網誌存檔

關於我自己