shell编程

Posted on 2006-10-27 11:25 郭大伟 阅读(367) 评论(0)  编辑 收藏 引用 所属分类: Linux

#!/bin/sh
echo "first name:\c"
read name
echo "second name:\c"
read sexname
echo "third name:\c"
read manname

cp justis.txt garland.txt && echo "if you are seeing this cp OK"
cp wopper.txt garland.txt || echo "if you are seeing this cp failed"
echo &name


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理


posts - 11, comments - 1, trackbacks - 0, articles - 0

Copyright © 郭大伟