shell编程

Posted on 2006-10-27 11:25 郭大伟 阅读(372) 评论(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

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

Copyright © 郭大伟