Foss : BASH - English
Introduction to BASH Shell Scripting The bash shell Bash Shell Script
Array Operations in BASH Declaring an Array and Assigning values Initializing an Array during declaration To find length of Bash Array and length of nth element To print whole Ba..
Basics of Redirection (error handling) Input and Output in bash Redirection definition file descriptors(FD) Standard input Input redirection explained with an example of sor..
Recursive function Recursive function meaning and uses Illustration of recursive function(Example used: Factorial of a number) Debugging of bash script(bash -x filename) Work flo..
Conditional execution Test Syntax of test if...then Bash script example for if...then if...then...else...if if-else with a password program
Bash comparison- Arithmetic comparison Arithmetic comparison -eq(equal to) -ne(not equal to) Demonstration of -eq and -ne with a word count program(Used: `wc -w`) -lt(lesser..
Case statement in BASH Importance of case statement Syntax of case(With both single and multiple options) Work-flow of case statement Creating menus using case Case statemen..
String and File Attributes comparison in BASH String comparison String comparison using == operator String comparison using != operator Simple program of user id to demnostrate..
More on Functions Local variable in a function Global variable in a function Scope of local and global variables Demonstration of local and global variable by an example(Example ..
Conditional Loops The for loop statement for loop with three expression syntax for loop with sequence/range syntax flow of for loop program The while loop statement flo..
More on If loops Nested if Nested if with flowgraph Nested If-else with Name and Password verification program Multilevel if-then-else Multilevel if-then-else with flowgraph..
More on Loops A loop within a loop Outer for loop Nested for loop Inner for loop Syntax of nested for loop Finding files in the directories using nested for loop
More on Redirection Redirection of both standard error and output using 'command &>filename' Redirection of both standard error and output using 'command >/dev/null 2>&1' Explanation on /dev/null..
Logical Operations Logical AND syntax Logical AND workflow Logical OR Logical OR workflow Logical OR and AND with string comparison program Logical NOT syntax Demo..
More on Arrays Extraction of Array elements Search and replace in an Array element To Add an element to an Array To remove an Element from an Array Shell script to illustrat..
Command Line arguments and quoting Command Line arguments Single quote Double quote Backslash
Globbing and export statements Globbing The export statement
Arrays & functions Arrays & functions Usability of array by different function call Array example Use of return in a function Use of exit in a function Illustration of ..
Basics of functions Writing your first shell function Displaying functions Writing functions Function defintion Calling functions Workflow of function Demonstratio..
Basics of Shell Scripting System variables User defined variables Accepting user input via keyboard