Shell Scripting Languages Examples, Bash, Sh, Python, Powershell, MSDOS, PHP, Tcl, Perl

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/shell-scripting-languages-examples-bash-sh-python-powershell-msdos-php-tcl-perl/
PINTEREST
PINTEREST
INSTAGRAM

A scripting language is a programming language supports writing simple to medium level applications in operating systems like Linux, Ubuntu, Debian, CentOS, Windows, MacOS, BSD, Unix. Scripting languages can be used to run complex tasks automatically or manually with very little effort. We can describe actions in scripting language and run them easily. In this tutorial we will look popular scripting languages used by different operating systems and platforms.

Bash

Bash is the king of the scripting languages. bash provides very convenient programming features. Linux, Unix and BSD platforms fully supports bash. If you want to learn more about bash look following tutorial.

Bash Tutorial

Following bash script will print Hello World to the standard output which is terminal in most cases.

Sh

sh is the limited version of the Bash . It provides basic features for the scripting environment. We can use sh in most of the daily operating like Bash . Following example will print Hello World to the terminal.

Python

Python is popular programming and scripting language used in different platforms and applications. Python can be used to develop Desktop Applications, Web Applications, Scripts, Cloud Applications etc. There are a lot of ready to use Python scripts to be used in Linux, BSD, Unix, Windows, MacOS. Python provides full feature set of programming languages. Python have two main version numbered as 2 and 3.

Python Tutorials

In this example we will print Hello World to the standard output.

LEARN MORE  Bash For and While Loop Examples

MSDOS

MSDOS is actually a operating system used 1980’s and 1990’s actively by Microsoft. But with GUI based operating system its used as auxiliary tool for low level operations like scripting and issuing commands. MSDOS provides some programming features and structures. In this example we will print Hello World to the MSDOS command prompt.

PowerShell

Powershell is next generation programming and scripting language used by Windows operating systems. It has some basic support for Linux platform too. PowerShell has bindings with programming languages like C# and Visual Basic.Net . In this example we will print Hello World to the screen.

Perl

Perl is old friend of Unix and Linux system administrators. As it is not so much popular currently there are popular applications developed with Perl. We can print Hello World to the terminal in a Perl script like below.

PHP

PHP is a web oriented programming language. PHP is designed as scripting language like Python. We can also use PHP as a system scripting language. We will print Hello World in this example.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/shell-scripting-languages-examples-bash-sh-python-powershell-msdos-php-tcl-perl/
PINTEREST
PINTEREST
INSTAGRAM