ProgrammingKnowledge

Videos: 206 Likes: 9,277 Views: 818,794

Videos by: ProgrammingKnowledge

Shell Scripting Tutorial for Beginners 13 – The case statement Example

3 months ago
For more detailed Tutorial visit – goo.gl/jLzKh2 The case statement is used to execute statements based on specific values. Often used in place of an if statement, if there are a large number of conditions.The variable is compared with the values using the shell wildcards ( ? * […] ) . [a-z] ) specifies a […]

Shell Scripting Tutorial for Beginners 12 – The case statement

3 months ago
For more detailed Tutorial visit – goo.gl/jLzKh2 The case statement is used to execute statements based on specific values. Often used in place of an if statement, if there are a large number of conditions.The variable is compared with the values using the shell wildcards ( ? * […] ) , NOT regular expressions. All […]

Shell Scripting Tutorial for Beginners 11 – Floating point math operations in bash | bc Command

3 months ago
For more detailed Tutorial visit – goo.gl/ZrJh1a bc, for basic calculator (often referred to as bench calculator), is “an arbitrary-precision calculator language” with syntax similar to the C programming language. bc is typically used as either a mathematical scripting language or as an interactive mathematical shell. bc [ -hlwsqv ] [long-options] [ file … ] […]

Shell Scripting Tutorial for Beginners 11 – Floating point math operations in bash | bc Command

3 months ago
For more detailed Tutorial visit – goo.gl/ZrJh1a bc, for basic calculator (often referred to as bench calculator), is “an arbitrary-precision calculator language” with syntax similar to the C programming language. bc is typically used as either a mathematical scripting language or as an interactive mathematical shell. bc [ -hlwsqv ] [long-options] [ file … ] […]

Shell Scripting Tutorial for Beginners 10 – Perform arithmetic operations

3 months ago
For more detailed Tutorial visit – goo.gl/ZrJh1a The Arithmetic expression is very important feature for performing number arithmetic operations in scripts. By default variables are treated as strings in bash scripts. But parsing a string to numbers is very easy using double parentheses and external command such as expr. Arithmetic operations in Bash Shell Arithmetic […]

Shell Scripting Tutorial for Beginners 9 – Logical ‘OR’ Operator

3 months ago
The Logical OR “||” is a boolean operator that executes following commands based on the outcome of previously executed commands. Logical OR (||) if [[expr1 ||expr2]] Returns expr1 if it can be converted to false; otherwise, returns expr2. Thus, when used with Boolean values, && returns true if one operands are true; otherwise, returns false. […]

Shell Scripting Tutorial for Beginners 8 – Logical ‘AND’ Operator

3 months ago
The Logical AND “&&” is a boolean operator that executes following commands based on the outcome of previously executed commands. Logical AND (&&) if [[expr1 && expr2]] Returns expr1 if it can be converted to false; otherwise, returns expr2. Thus, when used with Boolean values, && returns true if both operands are true; otherwise, returns […]

Shell Scripting Tutorial for Beginners 7 – How to append output to the end of text file

4 months ago
In this video we will see how to How to append string/data to a file in Linux. Using our knowledge we have gained in the last two lessons we will see how to Append and Insert Lines to a File using bash script. My Website – www.codebind.com My Blog – goo.gl/Nd2pFn My Facebook Page – […]

Shell Scripting Tutorial for Beginners 6 – File test operators

4 months ago
For more detailed Tutorial visit – goo.gl/vn9xIb Shell Script has many operators that you can use to test different aspects of a file. For example, you can use the -e operator to ensure that a file exists before deleting it. Or, you can check that a file can be written to before appending to it. […]

How to Install Node.js and NPM on a Mac

4 months ago
If you’re using OS X or Windows, the best way to install Node.js is to use one of the installers from the Node.js download page. If you’re using Linux, you can use the installer, or you can check NodeSource’s binary distributions to see whether or not there’s a more recent version that works with your […]

How to Install Python 3.6 on Mac OS X

4 months ago
This video explains how to install Python 3 in a Mac OS X, both Mavericks and Yosemite. As the Python website says, “Python 2.x is legacy, Python 3.x is the present and future of the language.” For those who are learning Python on a Mac, it may be slightly frustrating that Apple doesn’t provide the […]

Shell Scripting Tutorial for Beginners 5 – If Statement ( If then , If then else, If elif else)

4 months ago
Conditionals let us decide whether to perform an action or not, this decision is taken by evaluating an expression. Expressions An expression can be: String comparison, Numeric comparison, File operators and Logical operators and it is represented by [expression]: String Comparisons: ——————————— = compare if two strings are equal != compare if two strings are […]