Available tutorials in examples

How to print a new line in bash

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

How to split a string in bash by delimiter

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

How to Check if the program exists from a Bash script

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

Hello world in Coffee Script

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

How to write a hello world in Clojure

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

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…

Extracting number from a string in C#

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

How to write hello world in Erlang

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

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 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 trim whitespace of a string in Bash

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

How to compare two strings in Bash

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

How to convert a string into a lowercase in Bash

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

How to write a Hello world in Groovy

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

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 print hello world in C

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

How to extract filename and extension separately in bash

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

How to concatenate variables in Bash

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

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 check if the file does not exist in Bash

To check, if a file doesn’t exist in the bash we need to use not…

How to parse command line arguments in Bash

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

For loop in Bash script

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

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…

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 conditionally add classes in Angular using *ngClass

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

How to select an element in Angular component

Consider we have a input element like this in our angular html file…