Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
13 views

Linux Programming

This document contains two simple programs. The first program prints "Hello World" to demonstrate the basic syntax of a runnable program. The second program stores the text "Hello World" in a variable and prints the variable's value to display it.

Uploaded by

Pratiksh Patel
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Linux Programming

This document contains two simple programs. The first program prints "Hello World" to demonstrate the basic syntax of a runnable program. The second program stores the text "Hello World" in a variable and prints the variable's value to display it.

Uploaded by

Pratiksh Patel
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Hello World Program

– shows us the correct syntax for runnable code

#!/bin/sh
# 1st program; hello world
echo “ Hello World ”

Hello World + Storing Variables Program

#!/bin/sh
# 2nd program; hello world
#initializing the string variable
StringVariable = “ Hello World ”
# displaying the value of the string variable
echo “ $StringVariable ”

You might also like