免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3756 | 回复: 7
打印 上一主题 下一主题

想学shell编程,应该学哪一种shell啊? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-12 09:32 |只看该作者 |倒序浏览
我是个UNIX管理员,工作中80%在SUN Solaris上,20%在RH Linux上,对于shell编程,平常只做过一点非常简单的任务。现在工作中需要shell编程的地方越来越多,想学从头开始,认真学学shell编程,但是不知道该学哪一种shell, Bourne  shell, K shell, C shell, 还是 bash shell. 听一个在银行工作的朋友说,商业应用中主要是 K shell和 C shell,大单位主要用的也是这两种。 但是我所见系统管理和软件安装的shell大部分是 Bourne  shell 和bash shell啊,实在是糊涂了。而且各个shell之间还是有些区别的,变量,判断等等都不是一样的。请问大侠,应该学习哪种shell啊?\r\n\r\n另外,哪位能够建议比较好的shell编程的入门书籍,中英文都无所谓。\r\n\r\n谢谢了!

论坛徽章:
0
2 [报告]
发表于 2008-02-12 13:27 |只看该作者
可以去shell版看看,我也是在学,正在看<LINUX与UNIX SHELL编程指南>\r\n希望大家一起进步\r\n你可以留邮箱我发给你

论坛徽章:
0
3 [报告]
发表于 2008-02-12 21:48 |只看该作者
学一个常用的就可以,一个会了,其他的也就会了。

论坛徽章:
0
4 [报告]
发表于 2008-02-12 22:48 |只看该作者
如果工作中需要shell编程是为了系统管理,而且楼主80%是管SUN Solaris,\r\n建议学 Bourne  shell。\r\n\r\n如果是用Shell 写应用程序,那就要学应用程序所使用的Shell。

论坛徽章:
0
5 [报告]
发表于 2008-02-12 23:31 |只看该作者
I think you should start with bash if you work in a Solaris/Linux mixed envorinment. bash is the default shell in Linux and a enhanced version of Bourne shell in Solaris. \r\n\r\nThe relationship amound sh, ksh and bash are:\r\n\r\n1. sh is the basic shell in Solaris. Its function is limited. \r\n2. ksh is a super set of sh. It includes all functions of sh but offers a lot more. However, it is not that \"popular\" in Linux\r\n3. bash is a \"re-design\" of sh. bash adds a lot of features to make the traditional sh much more powerful. It is the default shell in Linux.\r\n4. csh is also very powerful. However, it is designed more for C programmers who are familar with C language syntax. \r\n5. You may also want to learn perl down the road since it is a very powerful language.

论坛徽章:
0
6 [报告]
发表于 2008-02-13 00:31 |只看该作者
Bash is my favorite. Compared with other shells, it has powerful extensions which come very handy. Also Awk and Sed are necessary to learn if you wanna be a shell master. Talking about shell books, I believe this book - ABS is the bible for shell learners. \r\nhttp://www.linuxsir.org/main/doc/abs/abs3.7cnhtm/index.html\n\n[ 本帖最后由 dreammaker 于 2008-2-13 00:34 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2008-02-13 04:04 |只看该作者
Thank you very much for all of your help! I really appreciate to all. After I read all of you comment and did some research in Internet, I think I should start from Bourne  shell and bash shell, perl will be further goal.\r\n\r\nAgain, Thank you to all of you!

论坛徽章:
0
8 [报告]
发表于 2008-02-13 11:19 |只看该作者
freebsd下哪种比较好?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP