Shell Script : Nested for loop statement

linux

Shell Script : Nested for loop statement Nested for loops means loop within loop. They are useful for when you want to repeat something serveral times for several things. For example, create a shell script called nestedforloop.sh: #!/bin/bash # A shell script to print each number five times. for (( i = 1; i <= … Read more

C – If..else, Nested If..else and else..if Statement

C If else statement Syntax of if else statement: If condition returns true then the statements inside the body of “if” are executed and the statements inside body of “else” are skipped. If condition returns false then the statements inside the body of “if” are skipped and the statements in “else” are executed. if(condition) { … Read more

If statement in C programming

When we need to execute a block of statements only when a given condition is true then we use if statement. In the next tutorial, we will learn C if..else, nested if..else and else..if. C – If statement Syntax of if statement: The statements inside the body of “if” only execute if the given condition … Read more

Operator precedence and Associativity in C programming language

Operator Precedence in C Operator precedence determines which operator is evaluated first when an expression has more than one operators. For example 100-2*30 would yield 40, because it is evaluated as 100 – (2*30) and not (100-2)*30. The reason is that multiplication * has higher precedence than subtraction(-). Associativity in C Associativity is used when … Read more

C Keywords – Reserved Words

In C, we have 32 keywords, which have their predefined meaning and cannot be used as a variable name. These words are also known as “reserved words”. It is good practice to avoid using these keywords as variable name. These are – “auto, break, case, char, const, continue, double, default, do, else, enum, exturn, float, … Read more

Rename Multiple Files In Linux using mmv command

rename files in linux

Rename Multiple Files In Linux using mmv command mmv moves (or copies, appends, or links, as specified) each source file matching a from pattern to the target name specified by the to pattern. yum install mmv Let us say, you have the following files in your current directory. $ ls a1.txt a2.txt a3.txt Now you want … Read more

asterisk: sip remove header

asterisk

asterisk: sip remove header SIPRemoveHeader() Synopsis Remove SIP headers previously added with SIPAddHeader Description SIPRemoveHeader() allows you to remove headers which were previously added with SIPAddHeader(). If no parameter is supplied, all previously added headers will be removed. If a parameter is supplied, only the matching headers will be removed. For example you have added … Read more

How to Install Visual Studio Code on CentOS 7

Visual Studio Code is an open-source cross-platform code editor developed by Microsoft. It has a built-in debugging support, embedded Git control, syntax highlighting, code completion, integrated terminal, code refactoring and snippets. Prerequisites You’ll need to be logged in as a user with sudo access to be able to install packages. Installing Visual Studio Code on … Read more

How to Install Wine 2.9 in Ubuntu:

The official Wine repository has built the packages for Ubuntu 14.04, Ubuntu 16.04, Ubuntu 16.10, Ubuntu 17.04. Follow the steps one by one to add the repository and install Wine 2.9: 1. Open terminal via Ctrl+Alt+T, and run command to install the key: wget https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key 2. Then add the Wine … Read more