Shell命令

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

ls -l | grep ^d
ls -l | grep '^[^d]'
ls -l | grep '^d.....x..x'

grep "garland" /etc/password
grep -s "garland" /etc/password

ps ax | grep "named"

#!/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

echo please input buddy count:
count =
read count

if count == 5
{
        echo galrnad 5
}


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


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

Copyright © 郭大伟