1 / 92
文档名称:

[UNIX系统管理高手].Unix.Shell.Programming.pdf

格式:pdf   页数:92页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

[UNIX系统管理高手].Unix.Shell.Programming.pdf

上传人:bolee65 2014/3/9 文件大小:0 KB

下载得到文件列表

[UNIX系统管理高手].Unix.Shell.Programming.pdf

文档介绍

文档介绍:Home Next Intro Basic Shells Shell Syntax Built-mand Substitution Startup & Environment Pipes,
Lists & Redirection Input & Output Using Files Design Considerations Functions Debugging Putting It All Together
Appendix Code Examples
Preface
Shell programming was not something I wanted several users I just copied the script into their
to do from the start, it kind of crept up on me over home directory and edited a few lines and off it
the years. You know how it is, you do something went. After a few weeks, I spotted the error of my
regular enough that it gets boring and you try to ways and created a directory for scripts that could
find short cuts. Well after my first UNIX training be shared. I put the directory into everyone's path
course I went back to the office and started to and started moving scripts into this central place.
look at the support requirements and it soon By editing the scripts and putting in variables,
became obvious that to do a good job something instead of hard coded values, I found I could
had to be done regarding the overload of make them generic enough for anybody to use, as
administration on a detailed level as the system long as the user's environment contained enough
grew. Initially my scripts were small and background information for the script to pick up
dedicated , and to do the same thing for and use.
A few months down the line and I saw another What I did pick up at this time was that there was
opportunity as I was aware there was a lot of a general disliking for the C Shell in most books I
common code in most of these scripts. Why keep found. It was pointed out on numerous occasions
copying all this code when I could call it from how many bugs there were. I must admit, even
another file? Two things sprang to mind initially, the man pages themselves highlight several pages
one was the .profile, which I was already using to of bugs at the back. I was also aware that to fully
store users environment variables, th