Final Practical Os
Final Practical Os
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 :-