Available tutorials in examples

For loop in Bash script

for loop is used to iterate over a list of items until a particular…

How to count all lines of code in a directory Bash

The following command is used to count the number of lines of code in…

How to parse command line arguments in Bash

This example will help you to parse a command line arguments in bash…

How to print hello world in C

This below example, will show you to how print a hello world program…

How to print a hello world in Kotlin

In this example, you will learn about how to print a hello world…

How to write a hello world in Rust

This example will show you how to write a hello world program in Rust…

How to print hello world in Scala

Learn, how to print a program in the Scala language. Create a new…

How to get first three characters from a string in C#

To get the first three characters from a string we can use the method…

How to write hello world in Erlang

This example will show you how to write a hello world program in…

How to write a hello world in Clojure

In this tutorial, you will learn about how to write a hello world…

Hello world in Coffee Script

This example will show how to print a in the coffee script. Create a…

How to print a new line in bash

To print a new line in bash, we need to use literal in command…

How to get first five characters from a string in C#

To get the first five characters from a string we can use the method…

How to write a Hello world in Groovy

In this tutorial, you will learn about how to write a hello world…

How to select an element in Angular component

Learn, how to select an element in Angular component with the help of…

How to conditionally add classes in Angular using *ngClass

Angular offers us different ways to add classes conditionally to the…

How to Get the source directory of a Bash script within the script itself

This example will help you to get the full path of an directory using…

How to Check if the program exists from a Bash script

You can use the posix compatible command to check, if the command…

How to convert a string into a lowercase in Bash

We can use POSIX standard command to convert a string into a…

How to concatenate variables in Bash

To concatenate a string to the existing string, we can use the…

How to check if the file does not exist in Bash

In this tutorial, we are going to learn about how to check if a given…

How to split a string in bash by delimiter

We can do this by setting an internal file separator (IFS) variable to…

How to compare two strings in Bash

To compare a two string in bash, we can use the statement with…

Extracting number from a string in C#

This below example, shows you how to extract the number from a string…

How to set a variable to the output of a command in Bash

We need to use double quotes to set a variable as an output to the…

How to extract filename and extension separately in bash

This example will show you how to extract filename and extension…

Can't bind to formGroup since it isn't a known property of form

In angular, we’ll get this type of errors if we forgot to add inside…

How to trim whitespace of a string in Bash

We can remove the leading and trailing whitespaces of a string by…