Header Ads

Wednesday, 9 October 2019

IGNOU MCA 4th Semester MCSL-045 UNIX and DBMS LAB solved Assignment 2019-20

IGNOU MCA 4th Semester MCSL-045 UNIX and DBMS LAB solved Assignment 2019-20

IGNOU MCSL-045 Solved Assignment 2019-20

DOWNLOAD NOW

Q1.

Write the UNIX commands for the following: (5 Marks)
(a) To search for text using specific regular expressions in file.
(b) To sort the contents of a file in reverse alphabetical order.
(c) To count the no. of characters and words in a given text file.
(d) Create a small text file from your console.
(e) Change the file permissions to Read, Write and Execute for everyone on a data file
created by you.
(f) To create a physical link between two files f1 and f2.
(g) Compare two text files and display the first difference.
(h) To display the disk usage.
(i) Create a file containing 20 lines, split it into two files containing 10 lines each.
(j) To change the owner of a file.
Q2.
(a) Write a shell program to count and print the no. of positive and negative integers in a list
of integers given as input by the user. (5 Marks)
(b) Given two filenames by the user as the input, write a shell script to append the contents of
file2 to file1. (5 Marks)
(c) Write a shell script to display the no. of times the given pattern occurs in a .dat file and
display the count. (5 Marks



0 comments:

Post a Comment