0% found this document useful (0 votes)
16 views

UNIX Program List

The document outlines a series of tasks involving shell scripting and programming in UNIX. It includes writing scripts for file management, user permissions, text processing, and inter-process communication. Additionally, it covers the implementation of system calls, creating child processes, and managing message queues.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

UNIX Program List

The document outlines a series of tasks involving shell scripting and programming in UNIX. It includes writing scripts for file management, user permissions, text processing, and inter-process communication. Additionally, it covers the implementation of system calls, creating child processes, and managing message queues.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

A1. Write a shell script to demonstrate UNIX commands.

A2. Write a shell script that displays list of all the files in the current directory to
which the user has read, write and execute permissions.

A3. Write a shell script that accepts a list of file names as its arguments, count and
reports the occurrence of each word that is present in the first argument file
on other argument files.

A4. Write a shell script that accepts one or more file name as arguments and
converts all of them to uppercase, provided they exist in the current directory.

A5. Write grep commands to the following:


a) To select the lines from a file that has exactly 2 characters.
b) To select the lines from a file that has more2 than one blank spaces.

A6. Write a shell script which accepts two file names as arguments. Compare the
contents. If they are same, then delete the second file.

A7. Write a shell script


a) to count number of lines in a file that do not contain vowels.
b) to count number of characters, words, lines in a given file.

A8. Write a shell script to list all the files in a given directory.

A9. Write a shell script to display list of users currently logged in.

A10. Write a shell script to read three text files in the current directory and merge
them into a single file and returns a file descriptor for the new file.
B1. Write a program to copy a file into another using system calls.

B3. Write a program to create a child process and allow the parent to display
"parent" and the child to display "child" on the screen.

B4. Write a program to create a Zombie process'

B5. Write a program to implement inter process communication using pipes'

B9. Write a program that illustrates inter process communication using shared
memory system calls.

B10. Write a program that illustrates the following:


a) Creating message queue
b) Writing to a message queue
c) Reading from a message queue

You might also like