0% found this document useful (0 votes)
13 views7 pages

Final Practical Os

Uploaded by

dkumar2003111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views7 pages

Final Practical Os

Uploaded by

dkumar2003111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Name = Devender Kumar

College Roll no = AC-309

Examination Roll no = 20001582015

Course = Bsc physical science with Cs

Subject Name = Operating System

Unique paper code = 42344304

Semester = 3rd

Questions = 1,9,10,13,24

1
Q.1 Write a shell script to take a filename
and directory name from user, if both exist,
move the file into the directory.

Ans =

Output :-

2
Q.9 Write a shell script to display sorted
lines from file named “Classwork” having
word “Diagram” in it.

Ans =

Output :-

3
Q.10 Write a shell script to display sorted
lines from file named “File1” NOT having
word “Diagram” in it.

Ans =

Output :-

4
Q.13 Write a shell script to read two
numbers and check if their sum is an
Armstrong number or not.
Ans =

Output :-

5
6
Q.24 Write a shell script to reverse the
digits of a number.
Ans =

Output :-

You might also like