NEWS: Total Picture Views: 147060 | Total Article Views: 155617 | Top 5 Most Popular Article: 1. Am I Stuck Algorithm with Becker Robot | 2. How to read a JSON and work with it | 3. PickUpThings with Becker Robot | 4. Encrypted Data GUI (Download .Zip) | 5. Create Wall and Things with Becker

Basic Script Bash

Description:

In this example you will see how to create a script. Also this script will ask you for your name and print it.

Code:

#!/bin/bash
#Program name example
#Program author Jean-Mathieu
#01/20/2015
echo "Please enter your name:"	#Write to standard output
read name						#Read from standard input
echo "Hello $name"		
ps -l							#display process
Attachments: None

Tags: bash echo read ps -l

Total Views: 781

My name is Jean-Mathieu

I created this website so other people could enjoy finding useful stuff easier. If you have any question do not hesitate to contact me.

jean8mathieuCreated on 01/20/15


affiliate_link

Disclosure: We are a website that needs compensation to operate like any other website on the internet.
We may receive consideration for our reviews but we are totally unbiased and do not accept paid reviews or fake reviews claiming to be something they are not.