Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Lab Assignment No: 3

Problem statement Topic: Shell scripting

NAME: Vedang U Bhange ROLLNO: 8 Subject: OS

CLASS: FYMCA BRANCH: MCA BATCH: B1

Problem Statements:

1. Sum of digits of a given number using while statement

2. Perform arithmetic operations using switch case

3. write a shell script which deletes all odd numbered lines in a text file and display the altered output in a
separate file.

4. Write a program to check file type and its permission of a given file type.

Code and Outputs :-

1. SUM OF DIGITS

OUTPUT:
2. Arthmetic Operations using case
OUTPUT 2:
OUTPUT 1:
3. Separating and deleting the odd file
OUTPUT :

4. File Permissions with file type


1
OUTPUT :

You might also like