Linux Bash Shell Scripting: A Practical way of Learning

所在平台: Udemy

课程主页: https://www.udemy.com/course/bash-shell-scripting-linux/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Linux Bash Shell 脚本编写:实用学习方法 课程概述:学习是重要的,但更重要的是如何去探索。这门课程以一种实用的方式设计,让您在完成课程模块的同时,能够学习并探索不同的工业项目。通过各种工业项目的实践方法,深入学习和探索Shell脚本编写。 课程内容: 1. **Shell编程简介** - Bash Shell的概念及其在Linux中的类型。 - Shell脚本的基本介绍。 2. **基本Shell脚本** - Bash Shell启动脚本的使用(.bash_profile, .bashrc, .bash_logout)。 - Shebang的使用。 - 创建简单Shell脚本及设置权限。 - 脚本调试技巧。 3. **Shell变量与环境** - 理解Bash变量、环境变量和系统变量。 - 使用`set`、`env`、`export`命令管理变量。 4. **用户输入与简单运算** - 使用`read`命令获取用户输入。 - 学习基本算术操作及变量的创建与使用。 - 路径名扩展与通配符的应用。 - 创建别名的实践。 5. **工业项目** - 完全自动化的预验证报告脚本。 - 从服务器收集所需信息的Shell脚本。 6. **Shell颜色输出** - 学习如何在终端中使用颜色文本及其代码。 - 获取系统信息的脚本。 7. **条件语句与循环** - 理解条件执行及布尔值。 - 掌握`if`、`else`、`elif`等条件语句的用法。 - 学习各类循环结构(`for`、`while`、嵌套循环等)。 8. **进程管理与重定向** - 学习输入输出重定向与管道的概念。 - 了解前台与后台进程的管理。 9. **函数的定义与使用** - 定义、调用函数,理解局部与全局变量。 - 学习函数参数传递及返回值的使用。 10. **AWK与SED工具** - 使用AWK进行模式匹配与文本处理。 - 使用SED进行字符串替换与行处理。 课程特别设计了多个实践实验室环节以及工业项目,确保学员能够在实际操作中巩固所学知识,并灵活应用于真实开发环境中。

课程评论(0条)

课程详情

Learning is important but most important is how to explore it. This course is designed in such a way that you can learn as well as explore the entire course module with various industrial projects. Practical approach to learn and explore the shell scripting with various industrial projectsCourse ContentIntroduction of Shell ProgrammingWhat is Bash Shell?Types of Shell available in LinuxAbout Shell ScriptingBash Shell Startup ScriptsUser's Home Directory -.bash_profile,.bashrc &.bash_logoutShebangCreate a simple Shell ScriptSetting up permissions on a scriptDebug a ScriptThe Shell Variables & EnvironmentBash VariablesEnvironmental VariablesSystem VariablesAssign values to shell variablesCustomize the bash shell environmentsset, env & export command Rules for naming variable nameSimple Script using echo commandQuotingThere are three Type of quoting The double quote (")The single quote (')The Backslash (/)User's Input via KeyboardRead CommandIFSPractice Lab SessionArithmetic OperationsPerforming Arithmetic OperationsCreate an integer VariableCreate the Constants VariablePath name expansionWildcards [*], ?, [..] etcCreate & use aliasesPractice Lab SessionsIndustrial Project to Completely Automate the Pre-validation reportA Shell Script to collect required information from a serverThe Bash ColorWriting Color TextVarious Color Codes for Foreground & Background TextLab Session on Bash ColorScript to fetch the system information i.e system_detailsSchedule the script via cronFinal Script to fetch the environment report on a single clickLab SessionConditional Statements (Decision Making)Overview of conditional executionWhat is Condition?Boolean value (True & False)If else statementLab Session on if..else..if..elif..else..fi statementtest commandLogical AND &&Logical OR!!The exit status of a commandNumeric ComparisonString ComparisonFile Attributes ComparisonShell Command line parametersPositional parameters via special shell variable $1, $2, $3,...,$N.Practice Lab SessionBash LoopsOverview of loop statementfor loop statementLab on for loopfor loop using C like Syntaxfor loop using command line argumentsNested for loop statementChessboard using nested loop statementWhile loop statementLab Session - read a text file line-by-line or using IFSinfinite while loopcase statementLab session on case statementCreate a simple menu driven program or automation tool Using Case StatementIndustrial ProjectDiscussed various scripts using for or while loopShell Redirection & Process ManagementInput Output Redirection in LinuxLab Session on redirectionPipelines in Linuxtee commandfile descriptor (fd) to file for outputfile descriptor (fd) to file for inputfile descriptor (fd) for reading & writingPractice Lab SessionOverview of a ProcessForeground & background ProcessVarious Stats of a processLab SessionFunctionsDefining functionsDisplaying functionsNested functionsLab Session - writing functionsCalling functionsLocal & global variablesPassing arguments into a functionreturn statementPractice Lab SessionsAWKIntroduction AwkPattern matchingUser defined variables in awkAwk pre-processingAwk post-processingPractice Lab SessionSED Stream EditorIntroductionReplacing or substituting string.Replacing the nth occurrence of a pattern in a lineReplacing all the occurrence of the pattern in a lineChanging the slash (/) delimiterUsing & as the matched stringDuplicating the replaced line with /p flagReplacing string on a specific line numberReplacing string on a range of linesReplace on a lines which matches a patternDeleting linesAdd a line after a matchAdd a line before a matchLast Lecture

课程标签

0人关注该课程

主题相关的课程