You are on page 1of 2

1

Write a shell script to swap values of two variable.

Write/explain and execute following command with output: a. cp

Write a shell script to print the multiplication table using until loop.

Write/explain and execute following command with output: a. rm

Write a shell script to print the sum of n number using for loop.

Write/explain and execute following command with output: a. touch

Write a shell script to calculate the factorial.

Write/explain and execute following command with output: a. rmdir

Write a shell script to find area of a circle.

Write/explain and execute following command with output: a. grep

Write a shell script to implement the concept of multi-way branching using case statement.

Write/explain and execute following command with output: a. chmod

Write a shell script to implement the concept of multi-way branching using if statement.

Write/explain and execute following command with output: a. cd

Write a shell script to check whether a number is odd or even.

Write/explain and execute following command with output: a. cp

b. cp

c. Pwd

b. mkdir

c. Who

b. vi

c. Man

b. ls

c. Cat

b. date

b. diff

b. wc

b. cp

c. Ping

c. Tail

c. More

c. Pwd

Write a shell script to check whether a number is positive or negative.

Write/explain and execute following command with output: a. rm

Write a shell srcipt to print 1,2,3, . . . . . 100 using while loop.

Write/explain and execute following command with output: a. touch

Rameshs basic salary is input throught the keyboard. His dearness allowance is 40% of basic
salary and house rent allowance is 20% of basic salary. Write a shell script to calculate his
gross salary.

Write/explain and execute following command with output: a. rmdir

Write a shell script to check the user is eligible for vote or not. (one must attain 18 years for
voting . Ignore month differences)

Write/explain and execute following command with output: a. grep

Write a shell script to enter any word and check whether word is beginning with a small

b. mkdir

b. vi

b. ls

c. who

c. man

c. cat

b. date

c. ping

case vowel or beginnings with a capital vowel or ending with a digit or any others.

Write/explain and execute following command with output: a. chmod

b. diff

c. tail

You might also like