ProgrammingKnowledge

Videos: 190 Likes: 7,776 Views: 664,685

Videos by: ProgrammingKnowledge

Shell Scripting Tutorial for Beginners 10 – Perform arithmetic operations

1 month 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

1 month 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

1 month 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

1 month 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

1 month 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

2 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

2 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)

2 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 […]

Shell Scripting Tutorial for Beginners 4 – Pass Arguments to a Bash-Script

2 months ago
Passing arguments to a shell script Any shell script you run has access to (inherits) the environment variables accessible to its parent shell. In addition, any arguments you type after the script name on the shell command line are passed to the script as a series of variables. The following parameters are recognized: $* Returns […]

How to create Partition on Windows 10 | Partition Hard Drives

2 months ago
In this video we will see How to reformat and partition a hard drive on a Windows PC. Disk partitioning is essentially separating the hard disk into different sections or parts for storage. If you want to try a new operating system without overwriting your main Windows drive, you can do this partitioning the hard […]

Shell Scripting Tutorial for Beginners 3 – Read User Input

2 months ago
Read command – The read command allows you to prompt for input and store it in a variable. shell allows to prompt for user input. Syntax: read varname [more vars] or read –p “prompt” varname [more vars] words entered by user are assigned to varname and “more vars” last variable gets rest of input line.

Shell Scripting Tutorial for Beginners 2 – using Variables and Comments

2 months ago
In Linux (Shell), there are two types of variable: (1) System variables – Created and maintained by Linux itself. This type of variable defined in CAPITAL LETTERS. (2) User defined variables (UDV) – Created and maintained by user. This type of variable defined in lower letters. Shell variables – var refers to the name, $var […]